Skip to content

Commit ef02b02

Browse files
committed
fix status failure on new config12 param
1 parent ee9d17b commit ef02b02

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mytonctrl/mytonctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def PrintStatus(local, ton, args):
589589

590590
if all_status:
591591
network_name = ton.GetNetworkName()
592-
rootWorkchainEnabledTime_int = ton.GetRootWorkchainEnabledTime()
592+
rootWorkchainEnabledTime_int = local.try_function(ton.GetRootWorkchainEnabledTime)
593593
config34 = ton.GetConfig34()
594594
config36 = ton.GetConfig36()
595595
totalValidators = config34["totalValidators"]

mytonctrl/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66

77
def timestamp2utcdatetime(timestamp, format="%d.%m.%Y %H:%M:%S"):
8+
if timestamp is None:
9+
return "n/a"
810
datetime = time.gmtime(timestamp)
911
result = time.strftime(format, datetime) + ' UTC'
1012
return result

0 commit comments

Comments
 (0)