summaryrefslogtreecommitdiff
path: root/qutebrowser/utils/utils.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-12-29 11:52:21 +0100
committerGitHub <noreply@github.com>2021-12-29 11:52:21 +0100
commit955c6fb7632203f6a89a0dd005c3e52124778254 (patch)
tree6553fb9f668fc5f96eb37c05bccf56dce17c72e1 /qutebrowser/utils/utils.py
parente8bbcf3382708a597aeace3bc650884c37558ea2 (diff)
parentad9ccabdd7100c1538787c1f40447cc5aa260118 (diff)
downloadqutebrowser-955c6fb7632203f6a89a0dd005c3e52124778254.tar.gz
qutebrowser-955c6fb7632203f6a89a0dd005c3e52124778254.zip
Merge pull request #6917 from qutebrowser/update-dependencies
Update dependencies
Diffstat (limited to 'qutebrowser/utils/utils.py')
-rw-r--r--qutebrowser/utils/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py
index 9c68932f3..a899fa599 100644
--- a/qutebrowser/utils/utils.py
+++ b/qutebrowser/utils/utils.py
@@ -300,7 +300,8 @@ def fake_io(write_func: Callable[[str], int]) -> Iterator[None]:
def disabled_excepthook() -> Iterator[None]:
"""Run code with the exception hook temporarily disabled."""
old_excepthook = sys.excepthook
- sys.excepthook = sys.__excepthook__
+ # https://github.com/python/typeshed/pull/6678
+ sys.excepthook = sys.__excepthook__ # type: ignore[assignment]
try:
yield
finally: