Skip to content

Commit

Permalink
Merge pull request #27 from signalfx/con-error-fix
Browse files Browse the repository at this point in the history
Bailing out on connection error
  • Loading branch information
keitwb authored Feb 9, 2018
2 parents 0a7d186 + 630ceca commit 7ee055c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def do_server_status(self):
except Exception, e:
self.log('ERROR: Connection failed for %s:%s' % (
self.mongo_host, self.mongo_port))
return
db = con[self.mongo_db[0]]
if self.mongo_user and self.mongo_password:
db.authenticate(self.mongo_user, self.mongo_password)
Expand Down

0 comments on commit 7ee055c

Please sign in to comment.