Set default error in fail, so "None" is not raised.
Set error before failing when checking dimensions of inplace outputs
Punctuation.
Merge pull request #1320 from lamblin/set_error_in_fail

Set Python exception when C code fails