mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Fix clean_dir for Python 3
TypeError when testing str > int
This commit is contained in:
parent
6cc3df73b3
commit
36932e25c6
1 changed files with 2 additions and 1 deletions
|
@ -283,7 +283,8 @@ def clean_dir(path, section, subsection):
|
|||
try:
|
||||
num_files = len(list_media_files(path, min_size=min_size, delete_ignored=delete_ignored))
|
||||
except Exception:
|
||||
num_files = 'unknown'
|
||||
num_files = 0
|
||||
|
||||
if num_files > 0:
|
||||
logger.info(
|
||||
'Directory {0} still contains {1} unprocessed file(s), skipping ...'.format(path, num_files),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue