Skip to content

Commit 86dcdbb

Browse files
committed
add try
1 parent 4629d3f commit 86dcdbb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

mytonctrl.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,13 @@ def CheckMytonctrlUpdate():
231231

232232

233233
def CheckMytonctrl2Update():
234-
if not ton.find_myself_in_vl(): # we are not validator in current and prev rounds
235-
print('============================================================================================')
236-
color_print(local.translate("update_mtc2_warning"))
237-
print('============================================================================================')
234+
try:
235+
if not ton.find_myself_in_vl(): # we are not validator in current and prev rounds
236+
print('============================================================================================')
237+
color_print(local.translate("update_mtc2_warning"))
238+
print('============================================================================================')
239+
except Exception as err:
240+
print(f'Failed to check node as validator: {err}')
238241
# end define
239242

240243

0 commit comments

Comments
 (0)