Skip to content

Commit 973b913

Browse files
authored
Update openpose_python.cpp (#2105)
1 parent 95f2ce0 commit 973b913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/openpose/openpose_python.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ template <> struct type_caster<op::Array<float>> {
469469
{
470470
UNUSED(defval);
471471
if (m.getSize().size() == 0) {
472-
return none();
472+
return Py_BuildValue("");
473473
}
474474
std::string format = format_descriptor<float>::format();
475475
return array(buffer_info(
@@ -505,7 +505,7 @@ template <> struct type_caster<op::Array<long long>> {
505505
{
506506
UNUSED(defval);
507507
if (m.getSize().size() == 0) {
508-
return none();
508+
return Py_BuildValue("");
509509
}
510510
std::string format = format_descriptor<long long>::format();
511511
return array(buffer_info(

0 commit comments

Comments
 (0)