(self)
| 453 | pyfile.finishIfDone() |
| 454 | |
| 455 | def run(self): |
| 456 | try: |
| 457 | try: |
| 458 | self.kwargs["thread"] = self |
| 459 | self.f(*self.args, **self.kwargs) |
| 460 | except TypeError, e: |
| 461 | #dirty method to filter out exceptions |
| 462 | if "unexpected keyword argument 'thread'" not in e.args[0]: |
| 463 | raise |
| 464 | |
| 465 | del self.kwargs["thread"] |
| 466 | self.f(*self.args, **self.kwargs) |
| 467 | finally: |
| 468 | local = copy(self.active) |
| 469 | for x in local: |
| 470 | self.finishFile(x) |
| 471 | |
| 472 | self.m.localThreads.remove(self) |
| 473 | |
| 474 | |
| 475 | class InfoThread(PluginThread): |
nothing calls this directly
no test coverage detected