Skip to content

Commit 1ab612f

Browse files
committed
Merge pull request #18 from julienvey/empty_path
Do not load yaml from empty path
2 parents 93329cb + 74d9a12 commit 1ab612f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansigenome/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def yaml_load(path, input="", err_quit=False):
189189
try:
190190
if len(input) > 0:
191191
return yaml.load(input)
192-
else:
192+
elif len(path) > 0:
193193
return yaml.load(file_to_string(path))
194194
except Exception as err:
195195
file = os.path.basename(path)

0 commit comments

Comments
 (0)