We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3140d2 commit 8ed359aCopy full SHA for 8ed359a
src/jupyterhub_cost_monitoring/query_usage.py
@@ -131,7 +131,13 @@ def _process_response(
131
if component_name == "home storage":
132
for entry in processed_result:
133
if "shared" not in entry["user"]:
134
- entry["user"] = escapism.unescape(entry["user"], escape_char="-")
+ try:
135
+ entry["user"] = escapism.unescape(entry["user"], escape_char="-")
136
+ except ValueError:
137
+ logger.warning(
138
+ f"Could not unescape username {entry['user']} for home storage component."
139
+ )
140
+ continue
141
return processed_result
142
143
0 commit comments