Strange exception message when invoking server side scripts that does not exist
Created by: Alexander Schlemmer
How to reproduce:
Python-Script:
import caosdb as db
form = dict()
form["call"] = "simple_script.py"
form["-Oexit"] = "123"
r = db.get_connection().post_form_data("scripting", form)
Run this on a CaosDB instance where "simple_script.py" does not exist in the scripting bin folder.
Response:
/home/ladocker/.local/lib/python3.6/site-packages/caosdb/connection/connection.py in _handle_response_status(http_response)
402 "{}.".format(status))
403 elif status == 404:
--> 404 raise EntityDoesNotExistError("This entity does not exist.")
405 elif status in (413, 414):
406 raise URITooLongException(
EntityDoesNotExistError: EntityDoesNotExistError: This entity does not exist.
I expected something like "simple_script.py" is not installed in this CaosDB instance.
Imported comments:
By Timm Fitschen on 2020-06-15T09:33:21.309Z
moved from caosdb-server#93 (closed)