Fix two flake8 errors

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
JoeLametta
2020-05-29 14:03:27 +00:00
parent 86fa4a3e77
commit 752162a434
2 changed files with 3 additions and 3 deletions

View File

@@ -233,8 +233,8 @@ class Task(LogStub):
def _notifyListeners(self, methodName, *args, **kwargs):
if self._listeners:
for l in self._listeners:
method = getattr(l, methodName)
for listener in self._listeners:
method = getattr(listener, methodName)
try:
method(self, *args, **kwargs)
# FIXME: catching too general exception (Exception)