Skip to content

Commit

Permalink
Catch _split_num_str exception
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Oct 22, 2024
1 parent acb3dda commit b8ed49e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auto_editor/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@


def parse_bitrate(input_: str, log: Log) -> int:
val, unit = _split_num_str(input_)
try:
val, unit = _split_num_str(input_)
except Exception as e:
log.error(e)

if unit.lower() == "k":
return int(val * 1000)
Expand Down

0 comments on commit b8ed49e

Please sign in to comment.