64 with contextlib.suppress(AttributeError): |
64 with contextlib.suppress(AttributeError): |
65 self.batchServices["batch_" + fn] = ( |
65 self.batchServices["batch_" + fn] = ( |
66 importedModule.initBatchService() |
66 importedModule.initBatchService() |
67 ) |
67 ) |
68 return 'ok' |
68 return 'ok' |
69 except ImportError: |
69 except ImportError as err: |
70 return 'Import Error' |
70 return 'Import Error: ' + str(err) |
71 except Exception as err: |
71 except Exception as err: |
72 return str(err) |
72 return str(err) |
73 |
73 |
74 def __send(self, fx, fn, data): |
74 def __send(self, fx, fn, data): |
75 """ |
75 """ |