diff --git a/src/urh/awre/Preprocessor.py b/src/urh/awre/Preprocessor.py index 9c65ef0aa..0ec04b525 100644 --- a/src/urh/awre/Preprocessor.py +++ b/src/urh/awre/Preprocessor.py @@ -100,7 +100,10 @@ def get_preamble_lengths_from_sync_words( (pl for pl in preamble_lengths if pl % 4 == 0), None ) if preamble_length is None: - preamble_length = preamble_lengths[0] + try: + preamble_length = preamble_lengths[0] + except IndexError as e: + preamble_length = 0 result[i] = preamble_length return result