mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
remove unused variable 'w' from '_onHtmlEdit'
This commit is contained in:
parent
3407fb7b2b
commit
8f993c8e31
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ class Editor:
|
|||
if html.find(">") > -1:
|
||||
# filter html through beautifulsoup so we can strip out things like a
|
||||
# leading </div>
|
||||
with warnings.catch_warnings() as w:
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore", UserWarning)
|
||||
html = str(BeautifulSoup(html, "html.parser"))
|
||||
self.note.fields[field] = html
|
||||
|
|
Loading…
Reference in a new issue