Skip to content

Commit

Permalink
fix: check if keystore path is dir before loading
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Jun 2, 2021
1 parent 18abb82 commit 5306d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brownie/network/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def load(self, filename: str = None, password: str = None) -> Union[List, "Local
filename = str(filename)
json_file = Path(filename).expanduser()

if not json_file.exists():
if not json_file.exists() or json_file.is_dir():
temp_json_file = json_file.with_suffix(".json")
if temp_json_file.exists():
json_file = temp_json_file
Expand Down

0 comments on commit 5306d37

Please sign in to comment.