diff --git a/aqt/editor.py b/aqt/editor.py index 4df8374bb..9c9f226b4 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -866,8 +866,8 @@ to a cloze type first, via Edit>Change Note Type.""")) pass # return a local html link ext = name.split(".")[-1].lower() - name = urllib.quote(name.encode("utf8")) if ext in pics: + name = urllib.quote(name.encode("utf8")) return '' % name else: anki.sound.play(name)