added more details to logs

This commit is contained in:
2023-11-19 21:20:24 +00:00
parent 157abff29e
commit e39425b202

View File

@@ -20,8 +20,8 @@ from secrets import WIFI_SSID, WIFI_PASSWORD, NEXTCLOUD_USERNAME, NEXTCLOUD_PASS
try:
ih.network_connect_better(WIFI_SSID, WIFI_PASSWORD)
except RuntimeError as e:
print(e)
write_err(e)
print(f' connect error: {e}')
write_err(f' connect error: {e}')
#Likely a network oops, try starting again
uos.umount("/sd")
machine.soft_reset()
@@ -31,8 +31,8 @@ try:
nc.set_auth(NEXTCLOUD_USERNAME, NEXTCLOUD_PASSWORD)
response = nc.get_folder_items("eink-frame")
except OSError as e:
print(e)
write_err(e)
print(f' nextcloud error: {e}')
write_err(f' nextcloud error: {e}')
#Likely a network oops, try starting again
uos.umount("/sd")
machine.soft_reset()