From ecdafe752ffabc0c8c3390a6ad3628f31b62839a Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Tue, 30 May 2023 18:25:30 +0800 Subject: [PATCH] Do not print the log that the decoder can't find attribute --- libsigrokdecode4DSL/util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libsigrokdecode4DSL/util.c b/libsigrokdecode4DSL/util.c index a1dfe1ae..4413927e 100644 --- a/libsigrokdecode4DSL/util.c +++ b/libsigrokdecode4DSL/util.c @@ -188,7 +188,6 @@ SRD_PRIV int py_dictitem_as_str(PyObject *py_obj, const char *key, } if (!(py_value = PyDict_GetItemString(py_obj, key))) { - srd_detail("Dictionary has no attribute '%s'.", key); goto err; } @@ -226,7 +225,6 @@ SRD_PRIV int py_dictitem_to_int(PyObject *py_obj, const char *key) } if (!(py_value = PyDict_GetItemString(py_obj, key))) { - srd_detail("Dictionary has no attribute '%s'.", key); goto err; }