summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crocoite/browser.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/crocoite/browser.py b/crocoite/browser.py
index 93d9228..c472746 100644
--- a/crocoite/browser.py
+++ b/crocoite/browser.py
@@ -350,8 +350,9 @@ class SiteLoader:
errorText=kwargs['errorText'],
blockedReason=kwargs.get ('blockedReason'))
item = self.requests.pop (reqId, None)
- item.failed = True
- return item
+ if item is not None:
+ item.failed = True
+ return item
async def _entryAdded (self, **kwargs):
""" Log entry added """