Skip to content

fix: correct logic bug, f-string typo, and bare except clauses - #413

Open
Ricardo-M-L wants to merge 1 commit into
bigscience-workshop:mainfrom
Ricardo-M-L:fix/logic-and-format-bugs
Open

fix: correct logic bug, f-string typo, and bare except clauses#413
Ricardo-M-L wants to merge 1 commit into
bigscience-workshop:mainfrom
Ricardo-M-L:fix/logic-and-format-bugs

Conversation

@Ricardo-M-L

Copy link
Copy Markdown

This PR addresses: correct logic bug, f-string typo, and bare except clauses

- fix model_type comparison: `== ['MNLI', 'QQP']` always evaluates to
  False because it compares a string to a list; use `in` instead
- fix f-string format: `f{out_pr}` prints literal 'f' prefix instead
  of the variable value; remove the stray 'f'
- replace bare `except:` with `except Exception:` in 3 files to avoid
  catching SystemExit and KeyboardInterrupt

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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