mirror of
https://github.com/muerrilla/sd-webui-detail-daemon.git
synced 2026-01-26 19:29:47 +00:00
PEP 8: E722 do not use bare 'except'
This commit is contained in:
@@ -225,7 +225,7 @@ class Script(scripts.Script):
|
||||
plt.close()
|
||||
self.last_vis = fig
|
||||
return fig
|
||||
except:
|
||||
except Exception:
|
||||
if self.last_vis is not None:
|
||||
return self.last_vis
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user