Skip to content

Commit

Permalink
fix: check_and_call_extract_file uses the first matching method and o…
Browse files Browse the repository at this point in the history
…ptions, instead of the first matching method and last matching options
  • Loading branch information
jpmckinney authored and akx committed Dec 9, 2024
1 parent cfdbc63 commit 2106923
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions babel/messages/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def check_and_call_extract_file(
for opattern, odict in options_map.items():
if pathmatch(opattern, filename):
options = odict
break
if callback:
callback(filename, method, options)
for message_tuple in extract_from_file(
Expand Down

0 comments on commit 2106923

Please sign in to comment.