From 8cfc13a0135ec0fc13ca333e5bf6858740e11d8b Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 17 May 2020 23:01:11 +0200 Subject: flake8: fix errors with new flake8 3.8.0 --- examples/demo/demos/printing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/demo/demos/printing.py') diff --git a/examples/demo/demos/printing.py b/examples/demo/demos/printing.py index 6e68037d..a87bd6fd 100644 --- a/examples/demo/demos/printing.py +++ b/examples/demo/demos/printing.py @@ -92,8 +92,8 @@ class PrintingApp: file_path = print_data['filename'] if not os.path.isfile(file_path): file_path = os.path.join('demos', file_path) - if not os.path.isfile: - raise Exception("file not found: " % (file_path, )) + if not os.path.isfile(file_path): + raise Exception("file not found: %s" % (file_path, )) # in reality you should most likely not read the entire # file into a buffer -- cgit v1.2.1