diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-12-16 06:55:38 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-12-16 07:14:11 +0700 |
commit | 2e3226004098a9908771fded989151f8d4bd298b (patch) | |
tree | 53027661528e43cced3bf7a28b117dab45c96dd4 | |
parent | 7dacdcbd090252d2df7839d7ef04f24fc0fa2b64 (diff) |
trx_toolkit/burst_send.py: exit if DATA dump parsing failed
False is not iterable, so we should properly handle the case
when parsing of the whole DATA dump was failed (e.g. due to
incorrect offset specified).
Change-Id: I5443efb39bb9d3377290ce7ec5e34016cae0edb2
-rwxr-xr-x | src/target/trx_toolkit/burst_send.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/trx_toolkit/burst_send.py b/src/target/trx_toolkit/burst_send.py index 7186863b..6c19e6ff 100755 --- a/src/target/trx_toolkit/burst_send.py +++ b/src/target/trx_toolkit/burst_send.py @@ -63,7 +63,8 @@ class Application(ApplicationBase): messages = self.ddf.parse_all( skip = self.argv.cnt_skip, count = self.argv.cnt_count) if messages is False: - pass # FIXME!!! + log.error("Parsing failed, nothing to send") + sys.exit(1) for msg in messages: # Pass filter |