diff -r aa713ac50c0d -r cc717c2ae956 eric6/Utilities/BackgroundClient.py --- a/eric6/Utilities/BackgroundClient.py Thu Apr 15 16:52:05 2021 +0200 +++ b/eric6/Utilities/BackgroundClient.py Thu Apr 15 18:11:24 2021 +0200 @@ -61,12 +61,10 @@ try: importedModule = __import__(module, globals(), locals(), [], 0) self.services[fn] = importedModule.initService() - try: + with contextlib.suppress(AttributeError): self.batchServices["batch_" + fn] = ( importedModule.initBatchService() ) - except AttributeError: - pass return 'ok' except ImportError: return 'Import Error'