check if dir before write, and do not write if it is
This commit is contained in:
parent
69934428b3
commit
4abf4f53b3
|
@ -119,6 +119,8 @@ class Logger:
|
|||
show = nick
|
||||
for f in files:
|
||||
path_to_file = os.path.join(LOGPATH, f)
|
||||
if os.path.isdir(path_to_file):
|
||||
return
|
||||
fil = open(path_to_file, 'a')
|
||||
fil.write('%s:%s:%s' % (tim, jid, show))
|
||||
if msg:
|
||||
|
|
Loading…
Reference in New Issue