Skip to content

Commit cf3f94c

Browse files
authored
Merge pull request #313 from yungwine/mytonctrl2_dev
fix incorrect warning for --state-ttl changing
2 parents 09d330b + 7c8a5c9 commit cf3f94c

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)