comparison mercurial/extensions.py @ 7644:182b7114d35a

error: move SignalInterrupt now derived from KeyboardInterrupt to simplify catches
author Matt Mackall <mpm@selenic.com>
date Mon, 12 Jan 2009 11:48:05 -0600
parents 5751631246de
children 53c72ba36c2b
comparison
equal deleted inserted replaced
7643:9a1ea6587557 7644:182b7114d35a
73 if path[0] == '!': 73 if path[0] == '!':
74 continue 74 continue
75 path = os.path.expanduser(path) 75 path = os.path.expanduser(path)
76 try: 76 try:
77 load(ui, name, path) 77 load(ui, name, path)
78 except (util.SignalInterrupt, KeyboardInterrupt): 78 except KeyboardInterrupt:
79 raise 79 raise
80 except Exception, inst: 80 except Exception, inst:
81 if path: 81 if path:
82 ui.warn(_("*** failed to import extension %s from %s: %s\n") 82 ui.warn(_("*** failed to import extension %s from %s: %s\n")
83 % (name, path, inst)) 83 % (name, path, inst))