summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-10-29 21:10:13 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-11-26 17:04:48 +0100
commit73ad9247c7b92e82542aa999a96535c76ac064ff (patch)
treec5454b11330d605aaa6a8d94f88ca71d0ddd7f17
parent83d80fcdd63b249edb0b4d886ee3026ffc8c9d12 (diff)
downloadqutebrowser-73ad9247c7b92e82542aa999a96535c76ac064ff.tar.gz
qutebrowser-73ad9247c7b92e82542aa999a96535c76ac064ff.zip
earlyinit: Remove unnecessary 'as e:' too
(cherry picked from commit d43529e2766eedb931d1c95c97323fed58cb7cce)
-rw-r--r--qutebrowser/misc/earlyinit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py
index 696cc7f8a..f27b7acfe 100644
--- a/qutebrowser/misc/earlyinit.py
+++ b/qutebrowser/misc/earlyinit.py
@@ -113,7 +113,7 @@ def init_faulthandler(fileobj=sys.__stderr__):
"""
try:
faulthandler.enable(fileobj)
- except (RuntimeError, AttributeError) as e:
+ except (RuntimeError, AttributeError):
# When run with pythonw.exe, sys.__stderr__ can be None:
# https://docs.python.org/3/library/sys.html#sys.__stderr__
#