indent exception catch
parent
5181aa0e6d
commit
5395f87b0e
|
@ -136,16 +136,16 @@ createAccessor_C(PyObject* self, PyObject* args)
|
||||||
}
|
}
|
||||||
if (casterCh[0] == '\0')
|
if (casterCh[0] == '\0')
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ptDataAccessor = (uint64_t) AF->createAccessor(filename, filemode, size,
|
ptDataAccessor = (uint64_t) AF->createAccessor(filename, filemode, size,
|
||||||
bands, width, scheme);
|
bands, width, scheme);
|
||||||
}
|
}
|
||||||
catch(const std::exception& e)
|
catch(const std::exception& e)
|
||||||
{
|
{
|
||||||
PyErr_SetString(PyExc_OSError, e.what());
|
PyErr_SetString(PyExc_OSError, e.what());
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (casterCh[0] != '\0' && PyDict_Size(dict) == 0)
|
else if (casterCh[0] != '\0' && PyDict_Size(dict) == 0)
|
||||||
|
|
Loading…
Reference in New Issue