Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,10 @@ def __init__(self, pyb):
print('----')
self.dev_name_short = self.name
QUIET or print('Retrieving time epoch ... ', end='', flush=True)
epoch_tuple = self.remote_eval(get_time_epoch)
try:
epoch_tuple = self.remote_eval(get_time_epoch)
except Exception:
epoch_tuple = (2000, 1, 1, 0, 0, 0, 0, 1, -1)
if len(epoch_tuple) == 8:
epoch_tuple = epoch_tuple + (0,)
QUIET or print(time.strftime('%b %d, %Y', epoch_tuple))
Expand Down