Login exception reason (#159259)

This commit is contained in:
PaulCavill
2025-12-18 04:13:54 +13:00
committed by GitHub
parent 769029505f
commit 3909171b1a
+1 -1
View File
@@ -108,7 +108,7 @@ class IcloudAccount:
if self.api.requires_2fa:
# Trigger a new log in to ensure the user enters the 2FA code again.
raise PyiCloudFailedLoginException # noqa: TRY301
raise PyiCloudFailedLoginException("2FA Required") # noqa: TRY301
except PyiCloudFailedLoginException:
self.api = None