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