diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-02-16 11:43:53 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-02-16 11:43:53 +0000 |
commit | 85de9397df2fc1560f7a66cad0a12afe20098f97 (patch) | |
tree | 618714443e6c08c464ac750b4c71853ae42611ff | |
parent | 5ba23385f8afc431ee95a01c23518b69e3377e59 (diff) | |
download | obnam-85de9397df2fc1560f7a66cad0a12afe20098f97.tar.gz |
Catch ObnamError as well in show_plugin.py
-rw-r--r-- | obnamlib/plugins/show_plugin.py | 2 | ||||
-rw-r--r-- | test-gpghome/random_seed | bin | 600 -> 600 bytes |
2 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/plugins/show_plugin.py b/obnamlib/plugins/show_plugin.py index 00f3886b..c07150a1 100644 --- a/obnamlib/plugins/show_plugin.py +++ b/obnamlib/plugins/show_plugin.py @@ -131,7 +131,7 @@ class ShowPlugin(obnamlib.ObnamPlugin): '''Check if the most recent generation is recent enough.''' try: self.open_repository() - except obnamlib.Error, e: + except (obnamlib.Error, obnamlib.ObnamError), e: self.app.output.write('CRITICAL: %s\n' % e) sys.exit(2) diff --git a/test-gpghome/random_seed b/test-gpghome/random_seed Binary files differindex 85661e53..22cbbf8a 100644 --- a/test-gpghome/random_seed +++ b/test-gpghome/random_seed |