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') 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)