changeset 1872 | 866fb3ab8778 |
parent 1832 | 0f1081928d65 |
child 1876 | 995df4804221 |
--- a/docutil/docsvg.py Fri Oct 13 13:17:42 2017 +0300 +++ b/docutil/docsvg.py Mon Oct 16 17:20:31 2017 +0300 @@ -33,7 +33,7 @@ try: svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE, 'Software\\Classes\\svgfile\\shell\\Inkscape\\command') - except WindowsError: + except OSError: svgexepath = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE, 'Software\\Classes\\inkscape.svg\\shell\\open\\command') svgexepath = svgexepath.replace('"%1"', '')