Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

tortoisehg: at least print exceptions that occur at registration time

Changeset 4896d63eae88

Parent 6cc0f3dbb34a

by Steve Borho

Changes to one file · Browse files at 4896d63eae88 Showing diff from parent 6cc0f3dbb34a Diff from another changeset...

Change 1 of 3 Show Entire File tortoisehg.py Stacked
 
78
79
80
81
82
 
 
83
84
85
 
93
94
95
96
97
 
 
98
99
100
 
113
114
115
116
117
 
 
118
119
120
 
78
79
80
 
 
81
82
83
84
85
 
93
94
95
 
 
96
97
98
99
100
 
113
114
115
 
 
116
117
118
119
120
@@ -78,8 +78,8 @@
  key = "CLSID\\%s\\PythonCOMPath" % cls._reg_clsid_   path = _winreg.QueryValue(_winreg.HKEY_CLASSES_ROOT, key)   _winreg.SetValue(_winreg.HKEY_CLASSES_ROOT, key, _winreg.REG_SZ, "%s;%s" % (path, hg_path)) - except: - pass + except Exception, e: + print e     # Add the appropriate shell extension registry keys   for category, keyname, values in cls.registry_keys: @@ -93,8 +93,8 @@
  apath = r'SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved'   key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, apath, 0, _winreg.KEY_WRITE)   _winreg.SetValueEx(key, cls._reg_clsid_, 0, _winreg.REG_SZ, 'TortoiseHg') - except: - pass + except Exception, e: + print e     print cls._reg_desc_, "registration complete."   @@ -113,8 +113,8 @@
  apath = r'SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved'   key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, apath, 0, _winreg.KEY_WRITE)   _winreg.DeleteValue(key, cls._reg_clsid_) - except: - pass + except Exception, e: + print e     print cls._reg_desc_, "unregistration complete."