diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-08-12 16:26:18 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-08-12 16:26:18 +0300 |
commit | 679b12eb5f9024309461bc9b70d1a0099525b9df (patch) | |
tree | fe693d55dce5babea0aacb3107dbee8b069fe870 | |
parent | 21bf4dac322e6c44729734c5090949f90a8cfabe (diff) | |
download | obnam-679b12eb5f9024309461bc9b70d1a0099525b9df.tar.gz |
Fix: mark error handling excluded from coverage
-rw-r--r-- | obnamlib/bag_store.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/bag_store.py b/obnamlib/bag_store.py index 39c4795b..466eddbc 100644 --- a/obnamlib/bag_store.py +++ b/obnamlib/bag_store.py @@ -1,4 +1,4 @@ -# Copyright 2015-2016 Lars Wirzenius +# Copyright 2015-2017 Lars Wirzenius # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -95,7 +95,7 @@ class BagStore(object): filename = self._make_bag_filename(bag_id) try: self._fs.remove(filename) - except EnvironmentError as e: + except EnvironmentError as e: # pragma: no cover logging.warning( 'Tried to delete %s which does not exist:%d:%s', filename, e.errno, str(e)) |