Changeset 4896d63eae88…
Parent 6cc0f3dbb34a…
by
Changes to one file · Browse files at 4896d63eae88 Showing diff from parent 6cc0f3dbb34a Diff from another changeset...
@@ -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."
|
Loading...