combine KeyError & IndexError to common base class LookupError

This commit is contained in:
Mike Fährmann
2022-02-11 00:42:49 +01:00
parent f1c853c6ef
commit bc0e853d30
2 changed files with 3 additions and 3 deletions

View File

@@ -1098,7 +1098,7 @@ class TwitterAPI():
else:
raise KeyError()
except (KeyError, IndexError):
except LookupError:
extr.log.debug(data)
if self._user: