[exception] rename 'LoginRequired' to 'AuthRequired'

This commit is contained in:
Mike Fährmann
2025-07-20 22:02:52 +02:00
parent 668556251c
commit f0de034889
6 changed files with 19 additions and 11 deletions

View File

@@ -341,7 +341,7 @@ class IwaraAPI():
def favorites(self, type):
if not self.username:
raise exception.LoginRequired("'username' and 'password' needed")
raise exception.AuthRequired("'username' & 'password'")
endpoint = f"/favorites/{type}s"
return self._pagination(endpoint)