Commit f5f64c03 by Calen Pennington

Don't try to create a directory from an empty string

parent a2070808
......@@ -63,8 +63,9 @@ def timed(wrapped, instance, args, kwargs): # pylint: disable=unused-argument
log_message.update(exception_info)
try:
if not exists(dirname(log_path)):
os.makedirs(dirname(log_path))
log_dir = dirname(log_path)
if log_dir and not exists(log_dir):
os.makedirs(log_dir)
with open(log_path, 'a') as outfile:
json.dump(
......
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