Skip to content

Commit

Permalink
fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
blublinsky committed Sep 21, 2024
1 parent 2b44b4c commit d8f531a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def _convert_output(data: list[tuple[bytes, str]]) -> list[tuple[bytes, str]]:
i = 0
for dt in data:
fname = TransformUtils.get_file_extension(dt[1])
res[i] = (dt[0], fname[1])
ext = fname[1]
if len(ext) <= 1:
ext = fname[0]
res[i] = (dt[0], ext)
i += 1
return res

Expand Down

0 comments on commit d8f531a

Please sign in to comment.