Fix for raising exception not derived from BaseException in _SelectorSslTransport.resume_reading

This commit is contained in:
Andrew Svetlov 2014-05-27 21:24:43 +03:00
parent 0a4d13e87e
commit 3207a03035
2 changed files with 5 additions and 1 deletions

View file

@ -670,7 +670,7 @@ class _SelectorSslTransport(_SelectorTransport):
def resume_reading(self):
if not self._paused:
raise ('Not paused')
raise RuntimeError('Not paused')
self._paused = False
if self._closing:
return