Skip to content

Commit

Permalink
fix found by mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Dec 24, 2024
1 parent 0b00218 commit 1e8d9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radicale/app/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def do_PUT(self, environ: types.WSGIEnviron, base_prefix: str,
# Etag asked but item not matching: item has changed
logger.warning("Precondition failed on PUT request for %r (HTTP_IF_MATCH: %s, item has different etag: %s)", path, etag, item.etag)
return httputils.PRECONDITION_FAILED
if etag:
if item and etag:
logger.debug("Precondition passed on PUT request for %r (HTTP_IF_MATCH: %s, item has etag: %s)", path, etag, item.etag)

match = environ.get("HTTP_IF_NONE_MATCH", "") == "*"
Expand Down

0 comments on commit 1e8d9ed

Please sign in to comment.