mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
Added error message for missing config files
This commit is contained in:
parent
85d8739512
commit
52e7aa2320
1 changed files with 4 additions and 1 deletions
|
@ -340,6 +340,7 @@ def process(nzbDir, inputName=None, status=0, clientAgent='manual', download_id=
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
|
|
||||||
# run migrate to convert old cfg to new style cfg plus fix any cfg missing values/options.
|
# run migrate to convert old cfg to new style cfg plus fix any cfg missing values/options.
|
||||||
if migratecfg().migrate():
|
if migratecfg().migrate():
|
||||||
# check to write settings from nzbGet UI to autoProcessMedia.cfg.
|
# check to write settings from nzbGet UI to autoProcessMedia.cfg.
|
||||||
|
@ -347,12 +348,14 @@ if migratecfg().migrate():
|
||||||
migratecfg().addnzbget()
|
migratecfg().addnzbget()
|
||||||
|
|
||||||
nzbtomedia_configure_logging(config.LOG_FILE)
|
nzbtomedia_configure_logging(config.LOG_FILE)
|
||||||
Logger = logging.getLogger(__name__)
|
|
||||||
|
Logger = logging.getLogger()
|
||||||
Logger.info("====================") # Seperate old from new log
|
Logger.info("====================") # Seperate old from new log
|
||||||
Logger.info("nzbToMedia %s", config.NZBTOMEDIA_VERSION)
|
Logger.info("nzbToMedia %s", config.NZBTOMEDIA_VERSION)
|
||||||
|
|
||||||
Logger.info("MAIN: Loading config from %s", config.CONFIG_FILE)
|
Logger.info("MAIN: Loading config from %s", config.CONFIG_FILE)
|
||||||
else:
|
else:
|
||||||
|
print("Unable to find " + config.CONFIG_FILE + " or " + config.SAMPLE_CONFIG_FILE)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
# setup categories
|
# setup categories
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue