ConfParser: Catch right error for older python version