From 595978cda0f7379990c3f8b8867db3cc3ce651d7 Mon Sep 17 00:00:00 2001 From: Gabriele Girelli Date: Mon, 17 Feb 2020 17:28:39 +0100 Subject: [PATCH] f-strings not supported by Python3.6- --- nd2reader/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nd2reader/reader.py b/nd2reader/reader.py index 0eeea16..7d9e4b9 100644 --- a/nd2reader/reader.py +++ b/nd2reader/reader.py @@ -17,7 +17,7 @@ class ND2Reader(FramesSequenceND): super(ND2Reader, self).__init__() if not filename.endswith(".nd2"): - raise InvalidFileType(f"The file {filename} you want to read with nd2reader does not have extension .nd2.") + raise InvalidFileType("The file %s you want to read with nd2reader does not have extension .nd2." % filename) self.filename = filename