Blob Blame History Raw
--- domoticz-2022.1/hardware/plugins/Plugins.cpp.orig	2022-08-25 22:05:28.155560748 -0500
+++ domoticz-2022.1/hardware/plugins/Plugins.cpp	2022-08-25 22:14:48.298362292 -0500
@@ -200,7 +200,7 @@
 		{
 			int lineno = PyFrame_GetLineNumber(frame);
 			std::string sFuncName = "Unknown";
-			PyCodeObject *pCode = frame->f_code;
+			PyCodeObject *pCode = PyFrame_GetCode(frame);
 			if (pCode && pCode->co_filename)
 			{
 				sFuncName = (std::string)PyBorrowedRef(pCode->co_filename);
@@ -244,7 +244,7 @@
 		{
 			int lineno = PyFrame_GetLineNumber(frame);
 			std::string sFuncName = "Unknown";
-			PyCodeObject *pCode = frame->f_code;
+			PyCodeObject *pCode = PyFrame_GetCode(frame);
 			if (pCode && pCode->co_filename)
 			{
 				sFuncName = (std::string)PyBorrowedRef(pCode->co_filename);
@@ -935,7 +935,7 @@
 			if (frame)
 			{
 				int lineno = PyFrame_GetLineNumber(frame);
-				PyCodeObject *pCode = frame->f_code;
+				PyCodeObject *pCode = PyFrame_GetCode(frame);
 				std::string FileName;
 				if (pCode->co_filename)
 				{