From 605fc655847efbd2be7f6d65c16581614825895d Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Tue, 11 Feb 2025 16:17:47 +0100 Subject: [PATCH] improve coding --- radicale/app/put.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/app/put.py b/radicale/app/put.py index 976b7bfd..7bd37035 100644 --- a/radicale/app/put.py +++ b/radicale/app/put.py @@ -274,7 +274,7 @@ class ApplicationPartPut(ApplicationBase): errno_e = int(errno_match.group(1)) if errno_e == errno.ENOSPC: return httputils.INSUFFICIENT_STORAGE - elif (errno_e == errno.EPERM) or (errno_e == errno.EACCES): + elif errno_e in [errno.EPERM, errno.EACCES]: return httputils.FORBIDDEN else: return httputils.INTERNAL_SERVER_ERROR