Error: variable 'kw' referenced before assignment
Bug #1311742 reported by
Arati Mahimane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Solum |
Fix Released
|
Medium
|
Arati Mahimane | ||
WSME |
Fix Released
|
Undecided
|
Arati Mahimane |
Bug Description
When wsme receives a request with a payload containing some unknown fields it results in a Client side Unknown argument error.
If funcdef.
The error comes from https:/
Code snippet:
try:
kw = dataformat.parse(
body, datatypes, bodyarg=
)
except UnknownArgument:
if not funcdef.
raise
return (), kw
Solution:
This can be fixed by initializing the kw variable.
Changed in wsme: | |
assignee: | nobody → Arati Mahimane (arati-mahimane) |
description: | updated |
Changed in solum: | |
importance: | Undecided → Medium |
status: | New → Triaged |
assignee: | nobody → Arati Mahimane (arati-mahimane) |
tags: | added: wsme-bug-1311742 |
tags: |
added: git-trigger-wsme-bug removed: wsme-bug-1311742 |
Changed in solum: | |
status: | Triaged → In Progress |
tags: | added: errors |
Changed in solum: | |
status: | In Progress → Fix Committed |
Changed in solum: | |
status: | Fix Committed → Fix Released |
Changed in wsme: | |
milestone: | none → 0.8.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/89883
Review: https:/