Skip to content

Commit

Permalink
Don't crash when loading python network modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Sokolov committed Sep 5, 2011
1 parent b9fe573 commit 9e95d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/modpython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class CModPython: public CModule {
sArgs.c_str(),
(int)eType,
(eType == CModInfo::GlobalModule ? Py_None : SWIG_NewInstanceObj(GetUser(), SWIG_TypeQuery("CUser*"), 0)),
(eType == CModInfo::NetworkModule ? SWIG_NewInstanceObj(GetNetwork(), SWIG_TypeQuery("CNetwork*"), 0) : Py_None),
(eType == CModInfo::NetworkModule ? SWIG_NewInstanceObj(GetNetwork(), SWIG_TypeQuery("CIRCNetwork*"), 0) : Py_None),
CPyRetString::wrap(sRetMsg),
SWIG_NewInstanceObj(reinterpret_cast<CModule*>(this), SWIG_TypeQuery("CModule*"), 0));
if (!pyRes) {
Expand Down

0 comments on commit 9e95d1c

Please sign in to comment.