fix: replace bare except clause with except Exception

This commit is contained in:
haosenwang1018 2026-02-26 00:44:36 +00:00
parent c34d6e81fd
commit f14f3f463f

View file

@ -1598,7 +1598,7 @@ class Flask(App):
except Exception as e:
error = e
response = self.handle_exception(ctx, e)
except:
except Exception:
error = sys.exc_info()[1]
raise
return response(environ, start_response)