mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Improve error message
This commit is contained in:
parent
1b68b6d1cf
commit
136c8e4193
1 changed files with 2 additions and 2 deletions
|
@ -245,8 +245,8 @@ def find_available_uid(exists_fn: Callable[[str], bool], suffix: str = ""
|
||||||
r[:8], r[8:12], r[12:16], r[16:20], r[20:], suffix)
|
r[:8], r[8:12], r[12:16], r[16:20], r[20:], suffix)
|
||||||
if not exists_fn(name):
|
if not exists_fn(name):
|
||||||
return name
|
return name
|
||||||
# something is wrong with the PRNG
|
# Something is wrong with the PRNG or `exists_fn`
|
||||||
raise RuntimeError("No unique random sequence found")
|
raise RuntimeError("No available random UID found")
|
||||||
|
|
||||||
|
|
||||||
def get_etag(text: str) -> str:
|
def get_etag(text: str) -> str:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue