[Pythonmac-SIG] Internet Config

Benjamin Schollnick junkster@rochester.rr.com
Tue, 16 Apr 2002 06:02:59 -0400


on 4/16/02 5:03 AM, Jack Jansen at Jack.Jansen@cwi.nl wrote:

>> 
>> Internet_config.settypecreator ( filename )
>> 
>> will return with a MacOS.Error (-666) if the filename's (extension) it
>> is
>> passed
>> is not registered in the Control Panels --> Internet --> Advanced pane.
> 
> That's not a bug, that's a feature:-)
> 
> The lowlevel IC routines returns that OSErr code. The only problem is
> that the number "-666" is not known to the code that creates the string
> for the error, because it (apparently) isn't an official Apple error.
> I'll see if I can add it manually somehow ("Unknown extension").
> 
> You should simply put a try/except around the call.

Already did.... It's just such a generic error though, I can't be positive
that it wasn't caused by something else...  (i.e. just at that moment the
universe has been destroyed?)

Hopefully Mark II will be ready tonight..

        - Benjamin