Skip to content

fix: replace bare except clauses with except Exception#44

Open
haosenwang1018 wants to merge 1 commit intoKuaishou-OneRec:mainfrom
haosenwang1018:fix/bare-excepts
Open

fix: replace bare except clauses with except Exception#44
haosenwang1018 wants to merge 1 commit intoKuaishou-OneRec:mainfrom
haosenwang1018:fix/bare-excepts

Conversation

@haosenwang1018
Copy link

Replace 17 bare except: clauses across 9 files with except Exception:. Bare except catches BaseException including SystemExit/KeyboardInterrupt, preventing clean shutdown during training and evaluation.

Replace 17 bare except: clauses across 9 files with except Exception:
to avoid catching SystemExit and KeyboardInterrupt, which can prevent
clean process shutdown during training/evaluation.
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