Skip to content

Commit

Permalink
Handling error when cwd does not exist (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul committed Mar 28, 2013
1 parent de924fd commit e7bee61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongoctl/mongoctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,7 @@ def resolve_path(path):
path = os.path.abspath(path)
except OSError, e:
# handle the case where cwd does not exist
if "No such file or directory" in e.message:
if "No such file or directory" in str(e):
pass
else:
raise
Expand Down

0 comments on commit e7bee61

Please sign in to comment.