Skip to content

Commit

Permalink
Troubleshoot test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Dec 27, 2023
1 parent f8749d6 commit a44ddf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neon_api_proxy/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def init_service_instances(self, service_class_mapping: dict) -> dict:
service_mapping[item] = \
service_class_mapping[item](api_key=api_key)
except Exception as e:
LOG.info(e)
LOG.exception(e)
return service_mapping

def resolve_query(self, query: dict) -> dict:
Expand Down
2 changes: 1 addition & 1 deletion neon_api_proxy/services/map_maker_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class MapMakerAPI(CachedAPI):
def __init__(self, api_key: str = None, cache_seconds=604800): # Cache week
super().__init__("map_maker")
self._api_key = api_key or getenv("MAP_MAKER_KEY")
if self._api_key is None:
if not self._api_key:
raise RuntimeError(f"No API key provided for Map Maker")
self._rate_limit_seconds = 1
self._last_query = time()
Expand Down

0 comments on commit a44ddf0

Please sign in to comment.