diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2022-01-07 22:21:21 +0100 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2022-01-07 22:21:21 +0100 |
commit | b40dacb334ef5de236cf1048fddba2a5cf4df5be (patch) | |
tree | 4c121590bbec03f35129f76cf4c3424281b0ac42 | |
parent | 40d1c52f064d05d554bd9c6d916984a00d888a83 (diff) | |
download | python-caldav-b40dacb334ef5de236cf1048fddba2a5cf4df5be.zip |
silly stupid bugfix: the textual representation of any error was hardcoded to AuthorizedError in the base class
-rw-r--r-- | caldav/lib/error.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/caldav/lib/error.py b/caldav/lib/error.py index 593f349..7ed86f4 100644 --- a/caldav/lib/error.py +++ b/caldav/lib/error.py @@ -45,8 +45,7 @@ class DAVError(Exception): self.reason = reason def __str__(self): - return "AuthorizationError at '%s', reason '%s'" % \ - (self.url, self.reason) + return "%s at '%s', reason '%s'" % (self.__class__.__name__, self.url, self.reason) class AuthorizationError(DAVError): """ |