177 def cancelSyntaxBatchCheck(self): |
177 def cancelSyntaxBatchCheck(self): |
178 """ |
178 """ |
179 Public method to cancel all batch jobs. |
179 Public method to cancel all batch jobs. |
180 """ |
180 """ |
181 for lang in self.getLanguages(): |
181 for lang in self.getLanguages(): |
182 env = self.__supportedLanguages[lang][0] |
182 try: |
183 self.backgroundService.requestCancel( |
183 env = self.__supportedLanguages[lang][0] |
184 'batch_{0}Syntax'.format(lang), env) |
184 self.backgroundService.requestCancel( |
|
185 'batch_{0}Syntax'.format(lang), env) |
|
186 except KeyError: |
|
187 continue |
185 |
188 |
186 def __serviceError(self, fn, msg): |
189 def __serviceError(self, fn, msg): |
187 """ |
190 """ |
188 Private slot handling service errors. |
191 Private slot handling service errors. |
189 |
192 |