[bugfix] savepath might be None as well!

This commit is contained in:
Marcel Paffrath 2017-08-15 14:16:34 +02:00
parent a23af62d23
commit c7e4cd0c8b

View File

@ -411,7 +411,7 @@ def autoPyLoT(input_dict=None, parameter=None, inputfile=None, fnames=None, even
data.applyEVTData(evt, 'event') data.applyEVTData(evt, 'event')
data.applyEVTData(picks) data.applyEVTData(picks)
if savexml: if savexml:
if savepath == 'None': if savepath == 'None' or savepath == None:
savepath = eventpath savepath = eventpath
fnqml = '%s/PyLoT_%s' % (savepath, evID) fnqml = '%s/PyLoT_%s' % (savepath, evID)
data.exportEvent(fnqml, fnext='.xml', fcheck=['auto', 'magnitude', 'origin']) data.exportEvent(fnqml, fnext='.xml', fcheck=['auto', 'magnitude', 'origin'])