From 67b3f4f36377bdb157ed8dc4c77e8d43550716b4 Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 15 Aug 2017 13:52:26 +0200 Subject: [PATCH] [bugfix] TypeError has no attr. 'message' --- pylot/core/io/phases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/io/phases.py b/pylot/core/io/phases.py index c85d2727..6f9bfc77 100644 --- a/pylot/core/io/phases.py +++ b/pylot/core/io/phases.py @@ -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