mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 22:51:58 +02:00
Potential fix for issuu#20
Checks for zero length files and skips processing them.
This commit is contained in:
parent
14aefafe14
commit
9b04049fbe
@ -119,6 +119,9 @@ def detect(
|
||||
error_files = []
|
||||
for index, audio_file in enumerate(files):
|
||||
try:
|
||||
if not os.path.getsize(audio_file):
|
||||
click.echo(f"\n{index} {audio_file} is empty! Skipping.")
|
||||
continue
|
||||
if not args["quiet"]:
|
||||
click.echo(f"\n{index} {audio_file}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user