Commit 6f7aa691 authored by ahoms's avatar ahoms
Browse files

* removed unnecessary SIP_[UN]BLOCK_THREADS from Exception %RaiseCode


git-svn-id: https://scm.blissgarden.org/svn/lima/trunk@172 45c4679d-1946-429d-baad-37912b19538b
parent 7935f32a
......@@ -22,7 +22,6 @@ class Exception
Exception(Layer layer, ErrorType err_type, std::string err_desc,
std::string file_name, std::string funct_name, int line_nr);
std::string getErrMsg() const;
private:
......
......@@ -7,6 +7,7 @@ enum ErrorType {
InvalidValue, NotSupported, Error,
};
%Exception Exception(SIP_Exception) /Default/
{
%TypeHeaderCode
......@@ -15,9 +16,7 @@ using namespace lima;
%End
%RaiseCode
const char *detail = sipExceptionRef.getErrMsg().c_str();
SIP_BLOCK_THREADS
PyErr_SetString(sipException_Exception, detail);
SIP_UNBLOCK_THREADS
%End
};
\ No newline at end of file
};
......@@ -12,7 +12,6 @@ Exception::Exception(Layer layer, ErrorType err_type, string err_desc,
{
}
string Exception::getErrMsg() const
{
ostringstream os;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment