Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing bug dealing with non-integer value of debug param when no Boto…

… section is in the config file. Closes #393.
  • Loading branch information...
commit 5c72772d015d138106ca9795c1b436cc055bf56e 1 parent 9b20360
@garnaat garnaat authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 boto/connection.py
View
4 boto/connection.py
@@ -450,10 +450,10 @@ def __init__(self, host, aws_access_key_id=None, aws_secret_access_key=None,
self.protocol = 'http'
self.host = host
self.path = path
- if debug:
+ if isinstance(debug, (int, long)):
self.debug = debug
else:
- self.debug = config.getint('Boto', 'debug', debug)
+ self.debug = config.getint('Boto', 'debug', 0)
if port:
self.port = port
else:
Please sign in to comment.
Something went wrong with that request. Please try again.