Permalink
Browse files

fix: UnboundLocalError: local variable 'source' referenced before ass…

…ignment

occours when startet from source as ./wfrog and no configuration files exist
  • Loading branch information...
debrunner committed Dec 30, 2016
1 parent 51bffac commit ec2540951d1b1ae998da2d280e7ba5b7e4abf25e
Showing with 1 addition and 1 deletion.
  1. +1 −1 wflogger/setup.py
View
@@ -37,7 +37,7 @@ def setup_settings(self, settings_def_file, source_file, target_file):
defs = yaml.load( file(settings_def_file, 'r') )
if source_file is not None:
source = yaml.load( file(source_file, 'r') )
if source == None:
else:
source = {}
target = {}
try:

0 comments on commit ec25409

Please sign in to comment.