diff --git a/archivebox/core/settings.py b/archivebox/core/settings.py index 9c716c16..746d6dbd 100644 --- a/archivebox/core/settings.py +++ b/archivebox/core/settings.py @@ -71,7 +71,7 @@ AUTHENTICATION_BACKENDS = [ DEBUG_TOOLBAR = False if DEBUG: try: - import debug_toolbar + import debug_toolbar # noqa DEBUG_TOOLBAR = True except ImportError: pass diff --git a/archivebox/index/schema.py b/archivebox/index/schema.py index 889d74b1..00831e19 100644 --- a/archivebox/index/schema.py +++ b/archivebox/index/schema.py @@ -178,7 +178,6 @@ class Link: raise def _asdict(self, extended=False): - from core.models import Snapshot info = { 'schema': 'Link', 'url': self.url,