comparison mercurial/commands.py @ 2428:42b8a1ff46cf

honor signals during load of extensions.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 13 Jun 2006 08:56:23 -0700
parents 6aa75e77cafe
children 9dd93deef3c9
comparison
equal deleted inserted replaced
2427:150cde10ea21 2428:42b8a1ff46cf
3293 try: 3293 try:
3294 mod = importh("hgext." + x[0]) 3294 mod = importh("hgext." + x[0])
3295 except ImportError: 3295 except ImportError:
3296 mod = importh(x[0]) 3296 mod = importh(x[0])
3297 external.append(mod) 3297 external.append(mod)
3298 except (util.SignalInterrupt, KeyboardInterrupt):
3299 raise
3298 except Exception, inst: 3300 except Exception, inst:
3299 u.warn(_("*** failed to import extension %s: %s\n") % (x[0], inst)) 3301 u.warn(_("*** failed to import extension %s: %s\n") % (x[0], inst))
3300 if u.print_exc(): 3302 if u.print_exc():
3301 return 1 3303 return 1
3302 3304