From a35f4c00aaa2ae598f26ebd59de73114edb1ae68 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 6 Nov 2022 12:29:55 +0300 Subject: [PATCH] power_insn: return None for unknown insn names --- src/openpower/decoder/power_insn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 08db9529..5d5be5d7 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -2423,6 +2423,6 @@ class Database: return record # hunt by string instead elif isinstance(key, str): - return self.__names[key] + return self.__names.get(key) return None -- 2.30.2