PEP 8: E722 do not use bare 'except'

This commit is contained in:
w-e-w
2024-07-01 23:06:43 +09:00
parent 704253022f
commit f1a3c5ed8f

View File

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