From fd923d1d42dd9014d6aab37b6a46b5ce3aed2b7e Mon Sep 17 00:00:00 2001 From: Boris Batteux Date: Thu, 18 Feb 2021 15:31:13 +0100 Subject: [PATCH] Also return None for all type of Exception --- d810/emulator.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/d810/emulator.py b/d810/emulator.py index 340ddaf..163c160 100644 --- a/d810/emulator.py +++ b/d810/emulator.py @@ -357,6 +357,12 @@ class MicroCodeInterpreter(object): raise e else: return None + except Exception as e: + emulator_log.error("Unexpected exception while computing constant mop value: '{0}': {1}".format(format_mop_t(mop), e)) + if raise_exception: + raise e + else: + return None class MopMapping(object):