def _fault_to_exception(f):
e = _fault_to_exception_map.get(f.faultCode)<EOL>if e is None:<EOL><INDENT>e = NipapError<EOL><DEDENT>return e(f.faultString)<EOL>
Converts XML-RPC Fault objects to Pynipap-exceptions.

        TODO: Is this one neccesary? Can be done inline...