Possible usage of an undefined variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.messaging |
Fix Released
|
Undecided
|
Unassigned | ||
oslo.messaging (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Utopic |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The following code has been found during examination of oslo.messaing's code:
https:/
except Exception as ex:
# NOTE(comstud): Unfortunately it's possible for amqplib
# to return an error not covered by its transport
# connection_errors in the case of a timeout waiting for
# a protocol response. (See paste link in LP888621)
# So, we check all exceptions for 'timeout' in them
# and try to reconnect in this case.
if 'timeout' not in six.text_type(e):
e = ex
There is possible an error: e = ex comes after if-section, this makes 'if ...' useless and always to raise an exception.
Related branches
Changed in oslo.messaging: | |
status: | New → Fix Committed |
Changed in oslo.messaging: | |
milestone: | none → 1.15.0 |
status: | Fix Committed → Fix Released |
Changed in oslo.messaging (Ubuntu): | |
status: | New → Fix Released |
Fix proposed to branch: stable/juno /review. openstack. org/191837
Review: https:/