[bugfix] TypeError has no attr. 'message'

This commit is contained in:
Marcel Paffrath 2017-08-15 13:52:26 +02:00
parent 8ce4f05a05
commit 67b3f4f363

View File

@ -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