Test more exceptions

This commit is contained in:
Vincent Jacques
2012-06-02 13:26:09 +01:00
parent 5384d6f9a8
commit dbad46e856
8 changed files with 65 additions and 5 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ class Requester:
cnx.close()
self.rate_limiting = ( int( headers[ "x-ratelimit-remaining" ] ), int( headers[ "x-ratelimit-limit" ] ) )
if "x-ratelimit-remaining" in headers and "x-ratelimit-limit" in headers:
self.rate_limiting = ( int( headers[ "x-ratelimit-remaining" ] ), int( headers[ "x-ratelimit-limit" ] ) )
# print verb, url, parameters, input, "==>", status, str( headers )[ :30 ], str( output )[ :30 ]
return status, headers, output