AWSError incorrectly passes None as a value for 'code' to twisted.web.error.Error

Bug #527456 reported by Jamu Kakar
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
txAWS
New
Undecided
Unassigned

Bug Description

A change made in Twisted r28237 makes t.w.e.Error convert values
passed as the 'code' parameter to an int. txAWS passes None by
default which result in an exception being raised:

  ...
  File "/home/jkakar/src/canonical/landscape-source-dependencies/txaws/trunk/txaws/exception.py", line 14, in __init__
    super(AWSError, self).__init__(status, message, response)
  File "/home/jkakar/src/projects/twisted/trunk/twisted/web/error.py", line 44, in __init__
    message = http.responses.get(int(code))

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.