dbapi.py
branchstable
changeset 9355 19ab31ea6ffb
parent 9297 9a44436cd5a5
child 9396 e83cbc116352
--- a/dbapi.py	Wed Dec 04 19:11:04 2013 +0100
+++ b/dbapi.py	Tue Nov 12 17:10:16 2013 +0100
@@ -270,7 +270,7 @@
     raises an AuthenticationError if anonymous usage is not allowed
     """
     anoninfo = vreg.config.anonymous_user()
-    if anoninfo is None: # no anonymous user
+    if anoninfo[0] is None: # no anonymous user
         raise AuthenticationError('anonymous access is not authorized')
     anon_login, anon_password = anoninfo
     # use vreg's repository cache