diff --git a/swh/lister/debian/models.py b/swh/lister/debian/models.py index 3cba2f8..1a7058f 100644 --- a/swh/lister/debian/models.py +++ b/swh/lister/debian/models.py @@ -85,11 +85,11 @@ class Area(SQLBase): yield (base_uri + '.' + ext, ext) else: yield (base_uri, None) - - raise NotImplementedError( - 'Do not know how to build index URI for Distribution type %s' % - self.distribution.type - ) + else: + raise NotImplementedError( + 'Do not know how to build index URI for Distribution type %s' % + self.distribution.type + ) def __repr__(self): return 'Area(%s of %s)' % (