Skip to content

Commit 572d1fa

Browse files
committed
Add arg to docstring.
1 parent e6b3449 commit 572d1fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bittensor/utils/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,12 @@ def unlock_key(
337337
) -> "UnlockStatus":
338338
"""
339339
Attempts to decrypt a wallet's coldkey or hotkey
340+
340341
Args:
341342
wallet: a Wallet object
342343
unlock_type: the key type, 'coldkey' or 'hotkey'
344+
raise_error: if False, will return (False, error msg), if True will raise the otherwise-caught exception.
345+
343346
Returns: UnlockStatus for success status of unlock, with error message if unsuccessful
344347
"""
345348
if unlock_type == "coldkey":

0 commit comments

Comments
 (0)