diff --git a/scripts/pmt_rates.py b/scripts/pmt_rates.py index d9317865fdf065bdd5a026dc03ae51a356112a43..23d69cac2f7946d341d7f527313908c15b05e892 100755 --- a/scripts/pmt_rates.py +++ b/scripts/pmt_rates.py @@ -121,7 +121,12 @@ class PMTRates(kp.Module): plt.close('all') def process(self, blob): - tmch_data = TMCHData(io.BytesIO(blob['CHData'])) + try: + tmch_data = TMCHData(io.BytesIO(blob['CHData'])) + except ValueError: + self.log.error("Could not parse binary data. Ignoring...") + return blob + dom_id = tmch_data.dom_id if dom_id not in self.detector.doms: