diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-03-02 13:53:16 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-03-02 13:53:16 +0000 |
commit | 97c2bb8472c20f925207b9339e135679aa088572 (patch) | |
tree | 86489f164f1c6118bf37688c8b72f77f73ca1936 | |
parent | 3dab184dd66479599768bc3d0ac66f8a413c5296 (diff) | |
download | obnam-97c2bb8472c20f925207b9339e135679aa088572.tar.gz |
Log unlock failures as warnings, not errors
Also, don't raise exception about the failure, since we're
unlocking (in this case) only when something's already failed
earlier, and we don't want to obscure the original problem.
-rw-r--r-- | obnamlib/plugins/backup_plugin.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/obnamlib/plugins/backup_plugin.py b/obnamlib/plugins/backup_plugin.py index 9279d748..e04fea19 100644 --- a/obnamlib/plugins/backup_plugin.py +++ b/obnamlib/plugins/backup_plugin.py @@ -327,10 +327,9 @@ class BackupPlugin(obnamlib.ObnamPlugin): 'Attempting to unlock shared trees because of error') self.repo.unlock_shared() except BaseException, e2: - logging.error( + logging.warning( 'Error while unlocking due to error: %s' % str(e2)) logging.debug(traceback.format_exc()) - raise else: logging.info('Successfully unlocked') |