Move self.emit outside of the try block
Merge pull request #229 from zag2art/master

Move self.emit outside of the try block (look #228)