diff -r 933fbe9a5e2c -r 866fb3ab8778 docutil/docsvg.py --- 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"', '')