Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: error with input data from Jon #236

Merged
merged 9 commits into from
Feb 3, 2025
2 changes: 1 addition & 1 deletion frontend/openshift.deploy.yml
DerekRoberts marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ objects:
- name: GUNICORN_TIMEOUT
value: "1800"
- name: GUNICORN_LOG_LEVEL
value: "info"
value: "debug"
- name: SECRET_KEY
valueFrom:
secretKeyRef:
Expand Down
4 changes: 2 additions & 2 deletions frontend/rctool/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def parse_context(context):
print("parse_context error: np.float64 found in context value")
str_index = str(value).index("np.float64")
print(value[str_index-10:str_index+10])
raise ValueError("np.float64 found in context value")
raise ValueError("np.float64 found in context value, value: " + value[str_index-20:str_index+20])
if "np.float64" in str(key):
print("parse_context error: np.float64 found in context key")
str_index = str(key).index("np.float64")
print(key[str_index-10:str_index+10])
raise ValueError("np.float64 found in context key")
raise ValueError("np.float64 found in context key, key: " + value[str_index-20:str_index+20])
return context

def rctool_import(request, tour_request_id=0):
Expand Down
Loading