Fix the raise exception issue
Merge pull request #15 from yczhu/master

Fix the raise exception issue