diff options
author | Lars Wirzenius <liw@gytha> | 2009-06-19 10:27:42 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@gytha> | 2009-06-19 10:27:42 +0300 |
commit | 25d7f64a23482f85a3b73612f4aeffa75dbf44cc (patch) | |
tree | 0e8bbcba3c5055ae6e5b9f86431e10d5aa4154a0 /obnam | |
parent | b931ab2ad100354b36ffd12dca5e3d1215250e6f (diff) | |
download | obnam-25d7f64a23482f85a3b73612f4aeffa75dbf44cc.tar.gz |
When reporting exceptions, if str(e) is empty, use repr(e) instead. MemoryError is one such exception.
Diffstat (limited to 'obnam')
-rwxr-xr-x | obnam | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,6 +33,6 @@ else: obnamlib.BackupApplication().run() except Exception, e: logging.debug(traceback.format_exc()) - logging.error(str(e)) - sys.stdout.write("ERROR: %s\n" % str(e)) + logging.error(str(e) or repr(e)) + sys.stdout.write("ERROR: %s\n" % (str(e) or repr(e))) sys.exit(1) |