jncramp / iniparse

Automatically exported from code.google.com/p/iniparse
Other
0 stars 0 forks source link

Exceptions not compatible #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
From: Oleg Deribas
Date: Mon, 06 Dec 2004 15:35:49 +0200
Subject: Re: cfgparse 0.1

>>But it is not compatible with ConfigParser's exceptions. I have used 
>>NoSectionError in my program, but cfgparse.compat does not support it.
>I looked at that code again quickly, and it does seem to be raising
>NoSectionError in many cases.  Can you send me the specific case where
>it raises the wrong exception?

Oh, I'm sorry.
I catch ConfigParser.Error (which is base class for all ConfigParser's
exceptions) to intercept any config errors on top level.
And there is no such class in cfgparse.compat

Original issue reported on code.google.com by psobe...@gmail.com on 15 Jul 2007 at 11:25

GoogleCodeExporter commented 8 years ago
Exception compatibility is still not perfect, but this particular problem 
should be fixed now (svn#45).

Original comment by psobe...@gmail.com on 16 Jul 2007 at 6:09