Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #777 from foglamp/test_common_fix
Browse files Browse the repository at this point in the history
common.py minor fix
  • Loading branch information
amarendra-dianomic authored May 9, 2018
2 parents 0d4b7eb + 8fab295 commit d7b028e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/foglamp/services/core/api/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def ping(request):
category_item = await cfg_mgr.get_category_item('rest_api', 'allowPing')
allow_ping = True if category_item['value'].lower() == 'true' else False
if request.is_auth_optional is False and allow_ping is False:
_logger.exception("Permission denied for Ping when Auth is mandatory: {}".format(str(e)))
_logger.exception("Permission denied for Ping when Auth is mandatory.")
raise web.HTTPForbidden

def get_stats(k):
Expand Down

0 comments on commit d7b028e

Please sign in to comment.