Skip to content

Commit

Permalink
Merge pull request #159 from hed-standard/IanCa-patch-1
Browse files Browse the repository at this point in the history
Update routes.py
  • Loading branch information
VisLab committed Feb 16, 2024
2 parents 11f7de4 + 1b17ef7 commit 656c4f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hedweb/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def schemas_results():
return package_results(a)
except Exception as ex:
if isinstance(ex, HedFileError) and len(ex.issues) >= 1:
return package_results(proc_schemas.format_error(proc_schemas.command, ex))
return package_results(SchemaOperations.format_error("validate", ex))
else:
return handle_http_error(ex)

Expand Down Expand Up @@ -137,8 +137,6 @@ def services_results():
"""

try:
hedschema.set_cache_directory(current_app.config['HED_CACHE_FOLDER'])
hedschema.cache_xml_versions()
arguments = ProcessServices.set_input_from_request(request)
response = ProcessServices.process(arguments)
return json.dumps(response)
Expand Down

0 comments on commit 656c4f6

Please sign in to comment.