mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 22:23:32 -07:00
Fix logger. #355
This commit is contained in:
parent
5fdf4e10e3
commit
607fe185a4
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ import shutil
|
||||||
import copy
|
import copy
|
||||||
import nzbtomedia
|
import nzbtomedia
|
||||||
from configobj import *
|
from configobj import *
|
||||||
|
from nzbtomedia import logger
|
||||||
|
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
|
||||||
|
@ -114,7 +115,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
||||||
shutil.copyfile(nzbtomedia.CONFIG_FILE, nzbtomedia.CONFIG_SPEC_FILE)
|
shutil.copyfile(nzbtomedia.CONFIG_FILE, nzbtomedia.CONFIG_SPEC_FILE)
|
||||||
CFG_NEW = config(nzbtomedia.CONFIG_SPEC_FILE)
|
CFG_NEW = config(nzbtomedia.CONFIG_SPEC_FILE)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.debug("Error %s when copying to .cfg" % (e))
|
logger.debug("Error %s when copying to .spec" % (e))
|
||||||
|
|
||||||
# check for autoProcessMedia.cfg and autoProcessMedia.cfg.spec and if they don't exist return and fail
|
# check for autoProcessMedia.cfg and autoProcessMedia.cfg.spec and if they don't exist return and fail
|
||||||
if CFG_NEW is None or CFG_OLD is None:
|
if CFG_NEW is None or CFG_OLD is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue