summaryrefslogtreecommitdiff
path: root/qutebrowser/misc/editor.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/misc/editor.py')
-rw-r--r--qutebrowser/misc/editor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/misc/editor.py b/qutebrowser/misc/editor.py
index 5741c6b47..d561a7b96 100644
--- a/qutebrowser/misc/editor.py
+++ b/qutebrowser/misc/editor.py
@@ -131,7 +131,7 @@ class ExternalEditor(QObject):
raise ValueError("Already editing a file!")
try:
self._filename = self._create_tempfile(text, 'qutebrowser-editor-')
- except OSError as e:
+ except (OSError, UnicodeEncodeError) as e:
message.error("Failed to create initial file: {}".format(e))
return