From f06af066f95243d8b589bed7b71b2f0dc4c9f1b2 Mon Sep 17 00:00:00 2001 From: Unrud Date: Wed, 20 Apr 2022 17:17:01 +0200 Subject: [PATCH] Improve error message --- radicale/item/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/item/__init__.py b/radicale/item/__init__.py index 04362b7..4a3fc22 100644 --- a/radicale/item/__init__.py +++ b/radicale/item/__init__.py @@ -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) if not exists_fn(name): return name - # something is wrong with the PRNG - raise RuntimeError("No unique random sequence found") + # Something is wrong with the PRNG or `exists_fn` + raise RuntimeError("No available random UID found") def get_etag(text: str) -> str: