From c7e4cd0c8bb6ce2c86347a07622f9594c03676c8 Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 15 Aug 2017 14:16:34 +0200 Subject: [PATCH] [bugfix] savepath might be None as well! --- autoPyLoT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoPyLoT.py b/autoPyLoT.py index 2c26c46d..cadf9eb8 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -411,7 +411,7 @@ def autoPyLoT(input_dict=None, parameter=None, inputfile=None, fnames=None, even data.applyEVTData(evt, 'event') data.applyEVTData(picks) if savexml: - if savepath == 'None': + if savepath == 'None' or savepath == None: savepath = eventpath fnqml = '%s/PyLoT_%s' % (savepath, evID) data.exportEvent(fnqml, fnext='.xml', fcheck=['auto', 'magnitude', 'origin'])