Skip to content

Commit 0a74071

Browse files
ucgJheucgJhe
authored andcommitted
make sure user_config is not None
1 parent 6ac199d commit 0a74071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiling/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def profile_setup(ostype: QL_OS, user_config: Optional[Union[str, dict]]):
430430
if isinstance(user_config, dict):
431431
config.read_dict(user_config)
432432

433-
else:
433+
elif user_config:
434434
config.read(user_config)
435435

436436
return config

0 commit comments

Comments
 (0)