mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
eval arg passed to setconfig, to avoid storing boolean as string
This commit is contained in:
parent
da6f292dd5
commit
271dfeb245
1 changed files with 5 additions and 0 deletions
5
electrum
5
electrum
|
@ -21,6 +21,7 @@ import json
|
|||
import optparse
|
||||
import os
|
||||
import re
|
||||
import ast
|
||||
import sys
|
||||
import time
|
||||
import traceback
|
||||
|
@ -454,6 +455,10 @@ if __name__ == '__main__':
|
|||
|
||||
elif cmd.name == 'setconfig':
|
||||
key, value = args[1:3]
|
||||
try:
|
||||
value = ast.literal_eval(value)
|
||||
except:
|
||||
pass
|
||||
config.set_key(key, value, True)
|
||||
print_msg(True)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue