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.
  • Loading branch information
jorgenpt committed May 5, 2015
1 parent 8dbfa5e commit 621f56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/1pass
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 621f56e

Please sign in to comment.