From b9b0c55d46328aed54b7ec04acea598f1b10597c Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Wed, 25 Sep 2024 16:16:30 +0200 Subject: [PATCH] avoid raising exceptions in `DataType.__str__()` thanks to [at]kayoub5 for pointing this out. Signed-off-by: Andreas Lauser Signed-off-by: Gerrit Ecke --- odxtools/odxtypes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/odxtools/odxtypes.py b/odxtools/odxtypes.py index c5a18f70..0b46f9de 100644 --- a/odxtools/odxtypes.py +++ b/odxtools/odxtypes.py @@ -254,5 +254,4 @@ def __str__(self) -> str: elif self in (DataType.A_UNICODE2STRING, DataType.A_ASCIISTRING, DataType.A_UTF8STRING): return "string" else: - odxraise(f"Type info for type {self.value}", NotImplementedError) - return "" + return f""