You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This checks for the text attribute but then uses the headers attribute (cut-and-paste error from the lines above?)
The response object is "Truthy" based upon the HTTP response, so in the case of a HTTP error it is actually "False" so the conditional check fails.
Which is just as well, because once you fix this you'll see that the format string is invalid and causes an exception because it is missing a %s at the end
:-)
I'll submit a pull request to fix this up shortly.
The text was updated successfully, but these errors were encountered:
beware of writing if x when you really mean if x is not None -- e.g. when testing whether a variable or argument that defaults to None was set to some other value. The other value might have a type (such as a container) that could be false in a boolean context!
There seems to be a bug in
JIRAError.__str__
https://github.com/pycontribs/jira/blob/master/jira/utils.py#L161
text
attribute but then uses theheaders
attribute (cut-and-paste error from the lines above?):-)
I'll submit a pull request to fix this up shortly.
The text was updated successfully, but these errors were encountered: