summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2022-05-08 18:41:54 +0200
committercos <cos>2022-05-08 22:45:31 +0200
commit051d2c5a16bf4ce92fd0962d3aff877e99c06124 (patch)
tree30d7c755821668caa9fc699e339b9210e2152eec
parenta809c3420f30ceb8e7d8314bbed4425a9f0eda86 (diff)
downloadpython-caldav-backport/python_36-support.zip
Trying to maintain compatibility with elder python versions. Changing a new-style f'string' with 'string' % (var1, var2)backport/python_36-support
-rw-r--r--caldav/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/caldav/objects.py b/caldav/objects.py
index 707c476..02a6ae2 100644
--- a/caldav/objects.py
+++ b/caldav/objects.py
@@ -966,7 +966,7 @@ class Calendar(DAVObject):
except error.NotFoundError:
raise
except Exception as err:
- raise NotImplementedError(f"Server said {str(err)}. The object_by_uid is not compatible with some server implementations. work in progress.")
+ raise NotImplementedError("Server said %s. The object_by_uid is not compatible with some server implementations. work in progress." % {str(err)})
# Ref Lucas Verney, we've actually done a substring search, if the
# uid given in the query is short (i.e. just "0") we're likely to