Skip to content

Commit

Permalink
fix: missing ecc_location causes unbound error
Browse files Browse the repository at this point in the history
missing ecc_location causes unbound error

Closes: #236
  • Loading branch information
shawaj authored Apr 2, 2023
1 parent 2a6067a commit 9f8c752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hm_pyhelper/miner_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ def get_ecc_location() -> str:
file.write(ecc_location)
return ecc_location

if not ecc_location:
try:
ecc_location
except NameError:
ecc_location = None
LOGGER.info("Can't find ECC. Ensure SWARM_KEY_URI is correct in hardware definitions.")

Expand Down

0 comments on commit 9f8c752

Please sign in to comment.