Skip to content

Commit

Permalink
fixed when there is no result for adsws
Browse files Browse the repository at this point in the history
  • Loading branch information
golnazads committed Apr 12, 2021
1 parent d5c95c0 commit d961322
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resolverway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def set_user_info(self, request):
except RedisError as e:
account = None
current_app.logger.error('exception on getting user info from cache with session=%s: %s' % (session, str(e)))
except TypeError as e:
account = None
current_app.logger.error('exception on getting user info from cache possibly no session: %s' % (str(e)))
if account:
current_app.logger.info('getting user info from cache with session=%s' % (session))
else:
Expand Down

0 comments on commit d961322

Please sign in to comment.