[bugfix] TypeError has no attr. 'message'
This commit is contained in:
parent
8ce4f05a05
commit
67b3f4f363
@ -222,7 +222,7 @@ def picksdict_from_picks(evt):
|
||||
lpp = mpp + pick.time_errors.upper_uncertainty
|
||||
epp = mpp - pick.time_errors.lower_uncertainty
|
||||
except TypeError as e:
|
||||
msg = e.message + ',\n falling back to symmetric uncertainties'
|
||||
msg = e + ',\n falling back to symmetric uncertainties'
|
||||
warnings.warn(msg)
|
||||
lpp = mpp + spe
|
||||
epp = mpp - spe
|
||||
|
Loading…
Reference in New Issue
Block a user