Permalink
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...
1 parent 9b20360 commit 5c72772d015d138106ca9795c1b436cc055bf56e @garnaat garnaat committed Jan 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 boto/connection.py
View
@@ -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:

0 comments on commit 5c72772

Please sign in to comment.