networkupstools/nut — pull request #128 by george2 (2014-06-03 19:34:00+00:00)
Title: PyNUT: Fix error when raising without an Exception.

Raising without a valid exception is invalid:

>>> raise
Traceback (most recent call last):
File "", line 1, in
TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
>>> raise Exception
Traceback (most recent call last):
File "", line 1, in
Exception

Changing this to "raise Exception" fixes this problem.