[bugfix] the type of obspy.core.event.Event objects resource_id attribute is of type obspy.core.event.ResourceID but must be of type str; simple conversion fixed this

This commit is contained in:
Sebastian Wehling-Benatelli 2015-07-08 15:00:51 +02:00
parent ec9840839e
commit 0236a19db1

View File

@ -78,9 +78,9 @@ class Data(object):
if fnout is None: if fnout is None:
ID = self.getID() ID = self.getID()
# handle forbidden filenames especially on windows systems # handle forbidden filenames especially on windows systems
fnout = fnConstructor(ID) fnout = fnConstructor(str(ID))
else: else:
fnout = fnConstructor(fnout) fnout = fnConstructor(str(fnout))
evtformat = evtformat.upper().strip() evtformat = evtformat.upper().strip()