-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust CALDAV.test_connection to return a boolean or raise an excepti…
…on with a message. (Fixes #802) (#805) * Adjust CALDAV.test_connection to return a boolean or raise an exception with a message. (Fixes #802) * 🌐 Add German translation --------- Co-authored-by: Andreas Müller <[email protected]>
- Loading branch information
1 parent
06f0c52
commit db8186e
Showing
7 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
class EventNotCreatedException(Exception): | ||
"""Raise if an event cannot be created on a remote calendar""" | ||
|
||
pass | ||
|
||
|
||
class EventNotDeletedException(Exception): | ||
"""Raise if an event cannot be deleted on a remote calendar""" | ||
|
||
pass | ||
|
||
|
||
class TestConnectionFailed(Exception): | ||
"""Raise if test connection fails, include remote error message.""" | ||
|
||
def __init__(self, reason: str | None = None): | ||
self.reason = reason |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters