(self)
| 376 | self.cli = cli |
| 377 | |
| 378 | def run(self): |
| 379 | while True: |
| 380 | sleep(1) |
| 381 | try: |
| 382 | self.cli.refresh() |
| 383 | except ConnectionClosed: |
| 384 | os.system("clear") |
| 385 | print _("pyLoad was terminated") |
| 386 | _exit(0) |
| 387 | except Exception, e: |
| 388 | println(2, red(str(e))) |
| 389 | self.cli.reset() |
| 390 | print_exc() |
| 391 | |
| 392 | |
| 393 | def print_help(config): |