Skip to content
Snippets Groups Projects
Commit 79202dcd9289 authored by François Ferry's avatar François Ferry
Browse files

fix: correct a missing exception from the previous commit

parent 29bcc2f9c8de
No related branches found
No related tags found
1 merge request!42Topic/default/let make some tests
from cubicweb import AuthenticationError
from pyramid.config import Configurator from pyramid.config import Configurator
...@@ -1,6 +2,6 @@ ...@@ -1,6 +2,6 @@
from pyramid.config import Configurator from pyramid.config import Configurator
from cubicweb_api import ApiAuthenticationError from cubicweb_api import ApiException
class AnonymousOrConnectedUserPredicate: class AnonymousOrConnectedUserPredicate:
...@@ -19,7 +20,7 @@ ...@@ -19,7 +20,7 @@
is not None is not None
): ):
return True return True
raise ApiAuthenticationError raise ApiException(AuthenticationError())
def includeme(config: Configurator): def includeme(config: Configurator):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment