From b0225515d21b2337faf6ecf12f485a17d4997ef6 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 10 Jun 2021 21:55:40 +0200 Subject: [PATCH] Remove isinstance check in error reporting --- nw/tools/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nw/tools/build.py b/nw/tools/build.py index 55597605..b64fe0bd 100644 --- a/nw/tools/build.py +++ b/nw/tools/build.py @@ -747,7 +747,7 @@ class GuiBuildNovel(QDialog): tEnd = int(time()) logger.debug("Built project in %.3f ms" % (1000*(tEnd - tStart))) - if bldObj.errData and isinstance(bldObj.errData, list): + if bldObj.errData: self.theParent.makeAlert([ self.tr("There were problems when building the project:") ] + bldObj.errData, nwAlert.ERROR)