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 Aug 21, 2024
1 parent cf7d223 commit 3c84602
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 3c84602

Please sign in to comment.