diff --git a/pylot/core/read/data.py b/pylot/core/read/data.py index dd54f51b..bcf841d7 100644 --- a/pylot/core/read/data.py +++ b/pylot/core/read/data.py @@ -78,9 +78,9 @@ class Data(object): if fnout is None: ID = self.getID() # handle forbidden filenames especially on windows systems - fnout = fnConstructor(ID) + fnout = fnConstructor(str(ID)) else: - fnout = fnConstructor(fnout) + fnout = fnConstructor(str(fnout)) evtformat = evtformat.upper().strip()