Skip to content

Commit

Permalink
Fixed a crash when '-cf' wasn't supplied in the config. (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
x1024 authored and tstumm committed Jul 26, 2016
1 parent cd9169c commit fb52bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def init_config():
# Select a config file code
parser.add_argument("-cf", "--config", help="Config File to use")
config_arg = parser.parse_known_args() and parser.parse_known_args()[0].config or None
if os.path.isfile(config_arg):
if config_arg and os.path.isfile(config_arg):
with open(config_arg) as data:
load.update(json.load(data))
elif os.path.isfile(config_file):
Expand Down

0 comments on commit fb52bda

Please sign in to comment.