I am using PortalPy to search for and return users. I am getting the following error:
'NoneType' object has no attribute 'get'
I get the error whether I use 'search_users' or 'get_org_users'
The error only occurs when I attempt to return all users. If I search for a specific user or set of users they return fine. My code is:
portal = portalpy.Portal(portalUrl, portalAdminUser, portalAdminPassword)
users = portal.search_users('')
print(users)
Any thought as to what the cause is? There are no obvious problems with our portal users that would make them None objects. The same code worked previously.
Also possibly related is this new message when the script is run "No handlers could be found for logger "portalpy""