Skip to content

Commit 2e42a67

Browse files
committed
actually throw the exception
1 parent 9ec7de8 commit 2e42a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrapper/pycc/src/casters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ template <> struct type_caster<QByteArray>
8181
ssize_t length;
8282
if (PyBytes_AsStringAndSize(src.ptr(), &buffer, &length) == -1)
8383
{
84-
std::runtime_error("Unable to extract bytes contents!");
84+
throw std::runtime_error("Unable to extract bytes contents!");
8585
}
8686
value = QByteArray(buffer, length);
8787
return true;

0 commit comments

Comments
 (0)