diff --git a/lib/galaxy/webapps/galaxy/api/configuration.py b/lib/galaxy/webapps/galaxy/api/configuration.py index a514ba783cc3..1df9db5034ad 100644 --- a/lib/galaxy/webapps/galaxy/api/configuration.py +++ b/lib/galaxy/webapps/galaxy/api/configuration.py @@ -36,7 +36,10 @@ def whoami(self, trans, **kwd): :rtype: dict """ current_user = self.user_manager.current_user(trans) - return current_user.to_dict() + rval = None + if current_user: # None for master API key for instance + rval = current_user.to_dict() + return rval @expose_api_anonymous_and_sessionless def index(self, trans, **kwd):