From: Paul B. <ba...@st...> - 2004-04-21 18:56:25
|
John Hunter wrote: >>>>>>"gary" == gary ruben <gr...@bi...> writes: > > > gary> I just uninstalled the 0.53b release and installed 0.53 > gary> There's still a problem on my Win98 system, but now it seems > gary> related to the new font manager: > > This is a bug (clearly!). I didn't catch it in my tests because it > only arises when you get an OSError on a win32 registry call, which I > never got. I believe Paul lifted this section of the code from > ttfquery. For a quick fix, in the win32InstalledFonts function, try > replacing > > try: > local = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, fontdir) > except OSError: > pass > > with > > try: > local = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, fontdir) > except OSError: > continue > > and let me know how things go. > > Paul, is the continue the correct behavior here? Yes. I'll fix it. -- Paul Barrett, PhD Space Telescope Science Institute Phone: 410-338-4475 ESS/Science Software Branch FAX: 410-338-4767 Baltimore, MD 21218 |