Instead of

class CustomException(Exception):
    pass

how about just

class CustomException(Exception)

(no colon, no 'pass')
I'm sure this has been suggested before, but I couldn't find any...