This commit is contained in:
Believethehype
2024-06-14 19:42:48 +02:00
parent 738768749a
commit fb4b742628
4 changed files with 8 additions and 10 deletions

View File

@@ -163,12 +163,12 @@ class DVMTaskInterface:
# f.close()
def process_venv(identifier):
async def process_venv(identifier):
args = DVMTaskInterface.process_args()
dvm_config = build_default_config(args.identifier)
dvm = identifier(name="", dvm_config=dvm_config, nip89config=NIP89Config(), admin_config=None)
try:
result = dvm.process(json.loads(args.request))
result = asyncio.run(dvm.process(json.loads(args.request)))
DVMTaskInterface.write_output(result, args.output)
except Exception as e:
DVMTaskInterface.write_output("Error: " + str(e), args.output)