Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion caldav/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"You need to install the `build` package and do a `python -m build` to get caldav.__version__ set correctly"
)
from .davclient import DAVClient
from .davclient import get_davclient
from .search import CalDAVSearcher

## TODO: this should go away in some future version of the library.
Expand All @@ -29,4 +30,4 @@ def emit(self, record) -> None:

log.addHandler(NullHandler())

__all__ = ["__version__", "DAVClient"]
__all__ = ["__version__", "DAVClient", "get_davclient"]
2 changes: 1 addition & 1 deletion caldav/lib/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def join(self, path: Any) -> "URL":
):
raise ValueError("%s can't be joined with %s" % (self, path))

if path.path[0] == "/":
if path.path and path.path[0] == "/":
ret_path = path.path
else:
sep = "/"
Expand Down
1 change: 1 addition & 0 deletions caldav/search.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
from copy import deepcopy
from dataclasses import dataclass
from dataclasses import field
Expand Down