From d26ce919495b9bc3783234ad7ed6604b72273e8f Mon Sep 17 00:00:00 2001
From: Carlo Guidi <cguidi@km3net.de>
Date: Tue, 14 Jan 2020 09:27:57 +0100
Subject: [PATCH] Update acoustics.py

---
 scripts/acoustics.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/acoustics.py b/scripts/acoustics.py
index c0477e2..c72f03d 100644
--- a/scripts/acoustics.py
+++ b/scripts/acoustics.py
@@ -160,8 +160,7 @@ while check:
                         N_Pulses_Indicator_DU.append(-1.5)
 
                         
-                except:
-                    stop = []
+                except (TypeError, ValueError): # TypeError if no data found for a certain piezo, ValueError if there are zero data for a certain piezo
                     N_Pulses_Indicator_DU.append(-1.5)
                     
         N_Pulses_Indicator.append(N_Pulses_Indicator_DU)
-- 
GitLab