Feature/tidy kg load save (#198)

* Clean exit on ctrl-C
* More functionality in dump
* Dump some metadata
This commit is contained in:
cybermaggedon 2024-12-06 15:16:09 +00:00 committed by GitHub
parent 55c5c398b6
commit fd3db3c925
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 177 additions and 37 deletions

View file

@ -19,6 +19,9 @@ resp = requests.post(
json=input,
)
if resp.status_code != 200:
raise RuntimeError(f"Status code: {resp.status_code}")
resp = resp.json()
if "error" in resp: