diff options
-rw-r--r-- | gbp/deb/source.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gbp/deb/source.py b/gbp/deb/source.py index 1959ec9d..a23f8a7e 100644 --- a/gbp/deb/source.py +++ b/gbp/deb/source.py @@ -78,8 +78,11 @@ class DebianSource(object): Return the L{gbp.deb.ChangeLog} """ if not self._changelog: - clf = self._vfs.open('debian/changelog') - self._changelog = ChangeLog(clf.read()) + try: + clf = self._vfs.open('debian/changelog') + self._changelog = ChangeLog(clf.read()) + except IOError as err: + raise DebianSourceError('Failed to read changelog: %s' % err) return self._changelog @property |