From f62836c0e7de36765b6e66fcf00f063162898e54 Mon Sep 17 00:00:00 2001 From: Ben White Date: Wed, 19 Jun 2024 13:57:17 +0200 Subject: [PATCH] Fix --- hogvm/python/execute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hogvm/python/execute.py b/hogvm/python/execute.py index 357bfb7e2893e..e297976d5a675 100644 --- a/hogvm/python/execute.py +++ b/hogvm/python/execute.py @@ -61,8 +61,8 @@ def pop_stack(): return BytecodeResult(result=None, stdout=stdout, bytecode=bytecode) def check_timeout(): - if time.time() - start_time > timeout.seconds and not debug: - raise HogVMException(f"Execution timed out after {timeout.seconds} seconds. Performed {ops} ops.") + if time.time() - start_time > timeout.total_seconds() and not debug: + raise HogVMException(f"Execution timed out after {timeout.total_seconds()} seconds. Performed {ops} ops.") while True: ops += 1