cosmetic fixes

This commit is contained in:
Paolo Asperti 2018-01-15 22:11:03 +01:00
parent c754373ae7
commit 2223711f6b

View File

@ -253,11 +253,13 @@ def checkPIDFile():
open(PIDFile,'w+').write("%s\n" % str(os.getpid())) open(PIDFile,'w+').write("%s\n" % str(os.getpid()))
logger.info('Created PIDfile %s' % PIDFile) logger.info('Created PIDfile %s' % PIDFile)
def delPIDFile(): def delPIDFile():
PIDFile = configParser.get('general', 'pid_file') PIDFile = configParser.get('general', 'pid_file')
os.remove(PIDFile) os.remove(PIDFile)
logger.info('Removed PIDfile %s' % PIDFile) logger.info('Removed PIDfile %s' % PIDFile)
def checkSpoolDir(): def checkSpoolDir():
spool_dir = configParser.get('general', 'spool_dir') spool_dir = configParser.get('general', 'spool_dir')
if not os.path.isdir(spool_dir): if not os.path.isdir(spool_dir):
@ -273,7 +275,7 @@ def initBot():
global bot global bot
global chat_ids global chat_ids
chat_ids=[] chat_ids=[]
logger.info('Allowed users:') logger.debug('Allowed users:')
for p in configParser.sections(): for p in configParser.sections():
if re.match('^id-.*',p): if re.match('^id-.*',p):
chat_id={ chat_id={