Skip to content

Commit

Permalink
fix: ensure dict when querying with empty tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasthaler committed Aug 13, 2024
1 parent 2c18bc2 commit 70ec6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coc/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ async def request(self, route, **kwargs):
self.stats[route.stats_key] = perf

LOG.debug("API HTTP Request: %s", str(log_info))
data = await json_or_text(response)
data = (await json_or_text(response)) or {}
data["status_code"] = response.status
data["timestamp"] = datetime.utcnow().timestamp()
try:
Expand Down

0 comments on commit 70ec6d6

Please sign in to comment.