From 534222e241e7e855161a922843561dcb371ca978 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 15 Jan 2018 11:16:26 +0100 Subject: [PATCH] [bugfix] Exception when pick.filter_id was None --- pylot/RELEASE-VERSION | 2 +- pylot/core/io/phases.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index a2d38bef..a729ded2 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -bb39-dirty +796e-dirty diff --git a/pylot/core/io/phases.py b/pylot/core/io/phases.py index 9391e68f..55a496e2 100644 --- a/pylot/core/io/phases.py +++ b/pylot/core/io/phases.py @@ -236,7 +236,10 @@ def picksdict_from_picks(evt): network = pick.waveform_id.network_code mpp = pick.time spe = pick.time_errors.uncertainty - filter_id = backtransformFilterString(str(pick.filter_id.id)) + if pick.filter_id: + filter_id = backtransformFilterString(str(pick.filter_id.id)) + else: + filter_id = None try: picker = str(pick.method_id) if picker.startswith('smi:local/'):