From 49d7d8be58d29813df85ccfcd2b2f3db98050539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20P=2E=20Tjern=C3=B8?= Date: Tue, 5 May 2015 13:05:38 -0700 Subject: [PATCH] Use .__str__ rather than .message to print errors. This helps because IOError does not assign `message', but __str__ prints both the path and the error that occurred. This should address georgebrock/1pass#7. --- bin/1pass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/1pass b/bin/1pass index a9fdf4c..fe3fe0d 100755 --- a/bin/1pass +++ b/bin/1pass @@ -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)