From: Gerhard Sittig Date: Sun, 22 Apr 2018 08:07:07 +0000 (+0200) Subject: dcf77: annotate invalid dow and month fields, do not abort execution X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=40935087ca8a2c63fb224228c3f7dcbe74d48d20;hp=40935087ca8a2c63fb224228c3f7dcbe74d48d20 dcf77: annotate invalid dow and month fields, do not abort execution Emit error annotations for invalid day of the week or month numbers, instead of aborting decoder execution with an exception. Implementation detail: Neither the Python 'in' keyword nor a .get() method are available. That's why we have to catch the IndexError exception. This fixes bug #1173. ---