diff --git a/main.py b/main.py index 9897ddd64c3cbfa77d4df0ab0375bb398b61f29f..37a1ff131a245973c84a33c0f7fc7522e61759f2 100644 --- a/main.py +++ b/main.py @@ -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()