Stream-Framework icon indicating copy to clipboard operation
Stream-Framework copied to clipboard

TypeError: catching classes that do not inherit from BaseException is not allowed

Open hodgesds opened this issue 8 years ago • 6 comments

This line blows up and should be changed to

except Exception as e:

hodgesds avatar Apr 15 '16 20:04 hodgesds

Hi Daniel,

That's interesting, what version of Python are you using?

tschellenbach avatar Apr 15 '16 20:04 tschellenbach

Python 3.5

hodgesds avatar Apr 15 '16 20:04 hodgesds

It works on 2.7 and 3.4...

tschellenbach avatar Apr 15 '16 20:04 tschellenbach

If you change exceptions=None to exceptions=tuple() does that work better?

tschellenbach avatar Apr 15 '16 20:04 tschellenbach

Side note is that I'm side loading the settings in order to get it to work with a flask app. It could be related to this Django bug, but I'm pretty close to figuring this out.

hodgesds avatar Apr 15 '16 20:04 hodgesds

So 3.5 also works for me. Both

except None as e: and except tuple() as e: are valid

tschellenbach avatar Apr 15 '16 20:04 tschellenbach