From 7687a0a929d8a60fa30f43d9e7bf0d53b4ff4aa6 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 8 May 2019 21:02:23 +0300 Subject: [PATCH] Fix PyLint "not-an-iterable" error --- platformio/exception.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platformio/exception.py b/platformio/exception.py index a7713b99..ac7288cf 100644 --- a/platformio/exception.py +++ b/platformio/exception.py @@ -19,8 +19,9 @@ class PlatformioException(Exception): def __str__(self): # pragma: no cover if self.MESSAGE: - return self.MESSAGE.format(*self.args # pylint: disable=not-an-iterable - ) + # pylint: disable=not-an-iterable + return self.MESSAGE.format(*self.args) + return super(PlatformioException, self).__str__()