Merge pull request #56 from Huluti/fix41

Fix #41
This commit is contained in:
Kilian Valkhof 2019-03-05 09:19:00 +01:00 committed by GitHub
commit d8d207438e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,7 @@ class ThreadPool:
return_value = self.callable(*self.arguments) #IGNORE:W0142 return_value = self.callable(*self.arguments) #IGNORE:W0142
except Exception as excep: #IGNORE:W0703 except Exception as excep: #IGNORE:W0703
logger = logging.getLogger("threadpool.worker") logger = logging.getLogger("threadpool.worker")
logger.warning("A job in the ThreadPool raised an exception: " + excep) logger.warning("A job in the ThreadPool raised an exception: ", excep)
#else do nothing cause we don't know what to do... #else do nothing cause we don't know what to do...
return return