indent exception catch

LT1AB
scott 2021-07-07 12:49:21 -05:00
parent 5181aa0e6d
commit 5395f87b0e
1 changed files with 10 additions and 10 deletions

View File

@ -136,16 +136,16 @@ createAccessor_C(PyObject* self, PyObject* args)
}
if (casterCh[0] == '\0')
{
try
{
ptDataAccessor = (uint64_t) AF->createAccessor(filename, filemode, size,
bands, width, scheme);
}
catch(const std::exception& e)
{
PyErr_SetString(PyExc_OSError, e.what());
return NULL;
}
try
{
ptDataAccessor = (uint64_t) AF->createAccessor(filename, filemode, size,
bands, width, scheme);
}
catch(const std::exception& e)
{
PyErr_SetString(PyExc_OSError, e.what());
return NULL;
}
}
else if (casterCh[0] != '\0' && PyDict_Size(dict) == 0)