Skip to content

Commit

Permalink
Fix crash for invalid URI
Browse files Browse the repository at this point in the history
  • Loading branch information
kronolynx committed Feb 7, 2017
1 parent d427d3b commit 60cd43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def parse_mongo_uri(conn):
conn = conn.split('://')[-1]
try:
uri = uri_parser.parse_uri("mongodb://" + conn)
except uri_parser.InvalidURI:
except (uri_parser.InvalidURI, ValueError):
return None
else:
return uri
Expand Down

0 comments on commit 60cd43f

Please sign in to comment.