summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-11-27 19:59:32 +0100
committerGuido Günther <agx@sigxcpu.org>2017-11-27 22:49:52 +0100
commite96ae7b4dcea85a9230a8889e2f3affb06207bf1 (patch)
tree3df884f5a4c9aae02035a7dc8d7ab247e1a1a8de
parent90a1a99169521df9de2b1bfc3c129402ee1158fc (diff)
ChangeLog: don't raise Exception()
It's too generic
-rw-r--r--gbp/deb/changelog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py
index e7e03257..5cfaaf79 100644
--- a/gbp/deb/changelog.py
+++ b/gbp/deb/changelog.py
@@ -78,7 +78,7 @@ class ChangeLog(object):
# Check that either contents or filename is passed (but not both)
if (not filename and not contents) or (filename and contents):
- raise Exception("Either filename or contents must be passed")
+ raise ValueError("Either filename or contents must be passed")
if filename and not os.access(filename, os.F_OK):
raise NoChangeLogError("Changelog %s not found" % (filename, ))