[bugfix] Exception when pick.filter_id was None

This commit is contained in:
Marcel Paffrath 2018-01-15 11:16:26 +01:00
parent 796eea87a1
commit 534222e241
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
bb39-dirty
796e-dirty

View File

@ -236,7 +236,10 @@ def picksdict_from_picks(evt):
network = pick.waveform_id.network_code
mpp = pick.time
spe = pick.time_errors.uncertainty
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/'):