Skip to content

Commit

Permalink
Fix inspect command without hotkey (#866)
Browse files Browse the repository at this point in the history
fix inspect command without hotkey

Co-authored-by: Thebes <[email protected]>
  • Loading branch information
unconst and Thebes authored Aug 4, 2022
1 parent 243a6a9 commit 3265214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bittensor/_wallet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def check_config(cls, config: 'bittensor.Config' ):
"""
assert 'wallet' in config
assert isinstance(config.wallet.get('name', bittensor.defaults.wallet.name), str)
assert isinstance(config.wallet.get('hotkey', bittensor.defaults.wallet.hotkey), (str, None))
assert isinstance(config.wallet.get('hotkey', bittensor.defaults.wallet.hotkey), str ) or config.wallet.get('hotkey', bittensor.defaults.wallet.hotkey) == None
assert isinstance(config.wallet.path, str)
assert isinstance(config.wallet.hotkeys, list)
assert isinstance(config.wallet.sort_by, str)
Expand Down

0 comments on commit 3265214

Please sign in to comment.