##// END OF EJS Templates
hooks: use try/except/finally
Matt Mackall -
r25084:7046c7e7 default
parent child Browse files
Show More
@@ -39,7 +39,6 def _pythonhook(ui, repo, name, hname, f
39 39 if demandimportenabled:
40 40 demandimport.disable()
41 41 try:
42 try:
43 42 obj = __import__(modname)
44 43 except ImportError:
45 44 e1 = sys.exc_type, sys.exc_value, sys.exc_traceback
@@ -79,7 +78,6 def _pythonhook(ui, repo, name, hname, f
79 78 starttime = time.time()
80 79
81 80 try:
82 try:
83 81 # redirect IO descriptors to the ui descriptors so hooks
84 82 # that write directly to these don't mess up the command
85 83 # protocol when running through the command server
General Comments 0
You need to be logged in to leave comments. Login now