Skip to content

Commit

Permalink
👽 Linode 400 Handled stats not available
Browse files Browse the repository at this point in the history
  • Loading branch information
radioactive11 committed Jun 29, 2022
1 parent ed28116 commit 77f2351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/core/instance_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def get_metrics(id: str, client: LinodeClient):
try:
result = instance.stats
except Exception as e:
result = {"data": e}
print(e)
result = {"data": "error"}

return result

Expand Down

0 comments on commit 77f2351

Please sign in to comment.