summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-08 10:30:35 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-08 10:30:35 +0100
commit0a4ba9cb42af57cd25067b3cad85d26425b019ab (patch)
tree69ef690a3f8de89f8adbb0f10d7fc068af2ec954
parent9c929d9b6309896438b9e11c8b1b384e09685c0c (diff)
downloadobnam-0a4ba9cb42af57cd25067b3cad85d26425b019ab.tar.gz
Exclude hard-to-test error from coverage.
-rw-r--r--obnamlib/repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/repo.py b/obnamlib/repo.py
index ddec4a46..d46466b8 100644
--- a/obnamlib/repo.py
+++ b/obnamlib/repo.py
@@ -274,7 +274,7 @@ class Repository(object):
line = lines[0]
try:
version = int(line)
- except ValueError, e:
+ except ValueError, e: # pragma: no cover
msg = ('Invalid repository format version (%s) -- '
'forgot encryption?' %
repr(line))