mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2025-12-24 01:14:24 +01:00
fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user