Re: [gdal-dev] ogr.UseExceptions() doesn't raise an exception on a non-existant dataset [SEC=UNCLASSIFIED]

2010-10-20 Thread Ari Jolma
On 10/21/2010 04:58 AM, Pinner, Luke wrote: OGR doesn't raise an exception on attempting to open a non-existant dataset even if ogr.UseExceptions() has been called, GDAL does though. Is this intentional or a bug? Luke, It is a (bit annoying feature admittedly) feature. If none of the avai

[gdal-dev] ogr.UseExceptions() doesn't raise an exception on a non-existant dataset [SEC=UNCLASSIFIED]

2010-10-20 Thread Pinner, Luke
OGR doesn't raise an exception on attempting to open a non-existant dataset even if ogr.UseExceptions() has been called, GDAL does though. Is this intentional or a bug? GDAL version = 1.7.2 from osgeo import gdal,ogr gdal.UseExceptions() ogr.UseExceptions() ds=ogr.Open('foo') #No exception raised