mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
log error and exit if not int. #410
This commit is contained in:
parent
0225cfc35c
commit
a113bf1116
1 changed files with 7 additions and 2 deletions
|
@ -395,8 +395,13 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
|
|||
except:
|
||||
extract = 0
|
||||
|
||||
if int(section[inputCategory]['remote_path']) and not nzbtomedia.REMOTEPATHS:
|
||||
logger.error('Remote Path is enabled for %s:%s but no Network mount points are defined. Please check your autoProcessMedia.cfg, exiting!' % (
|
||||
try:
|
||||
if int(section[inputCategory]['remote_path']) and not nzbtomedia.REMOTEPATHS:
|
||||
logger.error('Remote Path is enabled for %s:%s but no Network mount points are defined. Please check your autoProcessMedia.cfg, exiting!' % (
|
||||
sectionName, inputCategory))
|
||||
return -1
|
||||
except:
|
||||
logger.error('Remote Path is not valid for %s:%s Please set this to either 0 to disable or 1 to enable, exiting!' % (
|
||||
sectionName, inputCategory))
|
||||
return -1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue