Commit f5d2c1f1 authored by Evamvid Sharma's avatar Evamvid Sharma
Browse files

Changed raise to raise exception

Line 286.

This prevents the "RuntimeError: No active exception to reraise" error.

http://stackoverflow.com/a/28871066

Didn't look like anyone had changed the line.
parent fe60c1d8
......@@ -283,7 +283,7 @@ class Stream(object):
if exception:
# call a handler first so that the exception can be logged.
self.listener.on_exception(exception)
raise
raise exception
def _data(self, data):
if self.listener.on_data(data) is False:
......
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