equal
deleted
inserted
replaced
2447 try: |
2447 try: |
2448 signal.signal(signal.SIGHUP, catchterm) |
2448 signal.signal(signal.SIGHUP, catchterm) |
2449 except AttributeError: |
2449 except AttributeError: |
2450 pass |
2450 pass |
2451 |
2451 |
2452 u = ui.ui() |
2452 try: |
|
2453 u = ui.ui() |
|
2454 except util.Abort, inst: |
|
2455 sys.stderr.write(_("abort: %s\n") % inst) |
|
2456 sys.exit(1) |
|
2457 |
2453 external = [] |
2458 external = [] |
2454 for x in u.extensions(): |
2459 for x in u.extensions(): |
2455 def on_exception(Exception, inst): |
2460 def on_exception(Exception, inst): |
2456 u.warn(_("*** failed to import extension %s\n") % x[1]) |
2461 u.warn(_("*** failed to import extension %s\n") % x[1]) |
2457 u.warn("%s\n" % inst) |
2462 u.warn("%s\n" % inst) |