Skip to content

Commit 7c8a5c9

Browse files
committed
fix incorrect warning for --state-ttl changing
1 parent ca211e9 commit 7c8a5c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mytonctrl/mytonctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def Upgrade(ton, args):
388388
try:
389389
from mytoninstaller.mytoninstaller import set_node_argument, get_node_args
390390
node_args = get_node_args()
391-
if node_args['--state-ttl'] == '604800':
391+
if node_args.get('--state-ttl') == '604800':
392392
set_node_argument(ton.local, ["--state-ttl", "-d"])
393393
except Exception as e:
394394
color_print(f"{{red}}Failed to set node argument: {e} {{endc}}")

0 commit comments

Comments
 (0)