fix: replace 1 bare except clauses with except Exception

This commit is contained in:
haosenwang1018 2026-02-27 01:24:01 +00:00
parent c34d6e81fd
commit 13d8691408

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)