From b2e5ce32a9063f0e9da4a11d4cbc648d78b78a73 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Wed, 13 Nov 2019 13:51:46 +0100 Subject: [PATCH] Fix bogus NotImplementedError on Area.index_uris --- swh/lister/debian/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)' % (