Ver código fonte

Log "nobody" instead of "None" as anonymous calendars owner.

Guillaume Ayoub 14 anos atrás
pai
commit
3149643706
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      radicale/__init__.py

+ 2 - 1
radicale/__init__.py

@@ -184,7 +184,8 @@ class Application(object):
                         calendars.append(calendar)
                     continue
                 log.LOGGER.info(
-                    "Checking rights for calendar owned by %s" % calendar.owner)
+                    "Checking rights for calendar owned by %s" % (
+                        calendar.owner or "nobody"))
 
                 if self.acl.has_right(calendar.owner, user, password):
                     log.LOGGER.info("%s allowed" % (user or "anonymous user"))