From 1b93c8452b10cb52e3e53563a28e09d445df890b 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