ignore __cause__s that are None

Python 3 exception default to setting the __cause__ to None.