Skip to content

Fix bare except clause in records.py - #235

Open
koteshyelamati wants to merge 1 commit into
kennethreitz:masterfrom
koteshyelamati:master
Open

Fix bare except clause in records.py#235
koteshyelamati wants to merge 1 commit into
kennethreitz:masterfrom
koteshyelamati:master

Conversation

@koteshyelamati

Copy link
Copy Markdown

Replace bare except: with except Exception: in the database transaction context manager in records.py (line 344).

Bare except: catches BaseException including SystemExit and KeyboardInterrupt, which is almost never intentional. Using except Exception: restricts catching to regular application exceptions while allowing system-exit signals to propagate normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant