Catch Exception instead of BaseException