Skip to content

Fix bare except in ranking metrics - #1237

Merged
jhnwu3 merged 1 commit into
sunlabuiuc:masterfrom
francesca-crespi:fix-bare-except
Sep 12, 2026
Merged

jhnwu3 merged 1 commit into
sunlabuiuc:masterfrom
francesca-crespi:fix-bare-except

Conversation

@francesca-crespi

Copy link
Copy Markdown
Contributor

Replaced the bare except: clause with except ImportError: in metrics/ranking.py so that only missing pytrec_eval imports are caught

Fix bare except in ranking metrics
@jhnwu3

jhnwu3 commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

CI might flag this incorrectly (we'll probably need a smarter interface later for catching missing documentation), but this is a nice change. Will check back in when test cases finish.

@jhnwu3
jhnwu3 merged commit ab3cd71 into sunlabuiuc:master Sep 12, 2026
1 of 2 checks passed
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.

2 participants