Skip to content

Commit

Permalink
Use .__str__ rather than .message to print errors.
Browse files Browse the repository at this point in the history
This helps because IOError does not assign `message', but __str__ prints
both the path and the error that occurred.

This should address #7.
  • Loading branch information
jorgenpt committed May 5, 2015
1 parent 8dbfa5e commit 49d7d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/1pass
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import onepassword.cli
try:
onepassword.cli.CLI().run()
except Exception as e:
sys.stderr.write("1pass: Error: %s\n" % e.message)
sys.stderr.write("1pass: Error: %s\n" % e)
sys.exit(1)

0 comments on commit 49d7d8b

Please sign in to comment.