Commit dd95fb3f authored by Vitezslav Humpa's avatar Vitezslav Humpa
Browse files

Fix assert ignoring that empty strings also comes as False in IF statements.

parent dff019d7
Pipeline #2244507 failed with stages
......@@ -99,7 +99,9 @@ class Logger(object):
self.logName = logName
self.stdOut = stdOut
self.filee = file # Handle to the logfile
if not self.filee:
if self.filee == '' or self.filee == str(''):
self.filee = False
if isinstance(self.filee, bool):
return
scriptName = config.scriptName
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment