Skip to content

Commit

Permalink
Fixed ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminmah committed Oct 28, 2024
1 parent 38432cf commit 9373c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bugbug/bug_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,8 @@ def __init__(self):

valid_extensions = set(ext.lstrip(".") for ext in mimetypes.types_map.keys())

valid_extensions.update(
ext[2:] for (_, _, exts) in get_all_lexers() for ext in exts
valid_extensions = set(
ext[2:] for (_, _, exts, *_) in get_all_lexers() for ext in exts
)

extension_pattern_string = "|".join(re.escape(ext) for ext in valid_extensions)
Expand Down

0 comments on commit 9373c0b

Please sign in to comment.