fix: replace bare except clause with except Exception
This commit is contained in:
parent
c34d6e81fd
commit
f14f3f463f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue