remove unused variable 'w' from '_onHtmlEdit'

This commit is contained in:
sandersantema 2020-05-27 12:04:49 +02:00
parent 3407fb7b2b
commit 8f993c8e31

View file

@ -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