PEP 8 for except

This commit is contained in:
Michel Roux 2019-12-27 15:03:20 +01:00
parent ed5bb667bf
commit 751c14829a

2
app.py
View File

@ -157,7 +157,7 @@ def admin_edit(link_id=None):
if not attr.startswith('_') and getattr(link, attr) is None: if not attr.startswith('_') and getattr(link, attr) is None:
try: try:
setattr(link, attr, '') setattr(link, attr, '')
except: except Exception:
pass pass
form.folder.choices = [(0, '')] + form.folder.choices form.folder.choices = [(0, '')] + form.folder.choices
link.vf = False link.vf = False