Skip to content
Permalink
Browse files
Catch empty debug_dir
  • Loading branch information
traumschule committed Aug 27, 2018
1 parent 4e6ef1a commit 0a0735936bfdcd8bd13049ea1d87fd95a0b9f47d
Showing with 1 addition and 1 deletion.
  1. +1 −1 nyx/starter.py
@@ -131,7 +131,7 @@ def _setup_debug_logging(args):

debug_dir = os.path.dirname(args.debug_path)

if not os.path.exists(debug_dir):
if debug_dir is not '' and not os.path.exists(debug_dir):
os.makedirs(debug_dir)

debug_handler = logging.FileHandler(args.debug_path, mode = 'w')

0 comments on commit 0a07359

Please sign in to comment.