Skip to content

Commit 9352ae7

Browse files
fixed icsneoGetComponentVersions errors
1 parent 6dd4629 commit 9352ae7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/methods.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5500,6 +5500,12 @@ PyObject* meth_get_imei(PyObject* self, PyObject* args) { // icsneoGetIMEI
55005500

55015501
PyObject* meth_get_component_versions(PyObject* self, PyObject* args) // icsneoGetComponentVersions
55025502
{
5503+
#ifndef _USE_INTERNAL_HEADER_
5504+
(void)self;
5505+
(void)args;
5506+
return set_ics_exception(exception_runtime_error(),
5507+
"icsneoGetComponentVersions is not available");
5508+
#else
55035509
(void)self;
55045510
PyObject* obj = NULL;
55055511
bool force_update = true;
@@ -5557,4 +5563,5 @@ PyObject* meth_get_component_versions(PyObject* self, PyObject* args) // icsneoG
55575563
} catch (ice::Exception& ex) {
55585564
return set_ics_exception(exception_runtime_error(), (char*)ex.what());
55595565
}
5566+
#endif
55605567
}

0 commit comments

Comments
 (0)