From 679b12eb5f9024309461bc9b70d1a0099525b9df Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 12 Aug 2017 16:26:18 +0300 Subject: Fix: mark error handling excluded from coverage --- obnamlib/bag_store.py | 4 ++-- 1 file 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)) -- cgit v1.2.1