From 3ac52311cdbaa8671f0908b25769bb5719be9dda Mon Sep 17 00:00:00 2001 From: Tom Herman Date: Mon, 16 Dec 2024 19:43:27 +0200 Subject: [PATCH] mypy fix --- flipjump/interpretter/fjm_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flipjump/interpretter/fjm_run.py b/flipjump/interpretter/fjm_run.py index 7d7fe70..cd1a604 100644 --- a/flipjump/interpretter/fjm_run.py +++ b/flipjump/interpretter/fjm_run.py @@ -82,7 +82,7 @@ def print( output_str = f"Program's output before it was terminated: {output_to_print!r}\n\n" termination_cause_str = str(self.termination_cause) - if self.termination_cause == TerminationCause.RuntimeMemoryError: + if self.memory_error_address is not None: termination_cause_str += f" (address {hex(self.memory_error_address)})" print( f'\n'