Skip to content

Commit

Permalink
The code now correctly uses 'elif' instead of 'if' to handle '%' in b…
Browse files Browse the repository at this point in the history
…asenames.
  • Loading branch information
jakubjezek001 committed Sep 30, 2024
1 parent 095945b commit a796936
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def _add_representation(
basename = basename.replace("#" * padding, seq_padding)
file_head = basename.split(seq_padding)[0]
is_sequence = True
if "%" in basename:
elif "%" in basename:
pattern = re.compile(r"%\d+d|%d")
padding = pattern.findall(basename)
if not padding:
Expand Down

0 comments on commit a796936

Please sign in to comment.