mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Move socket errors from the XML-RPC plugin to the client
This commit is contained in:
@@ -25,6 +25,7 @@ import re
|
||||
import sys
|
||||
import code
|
||||
import optparse
|
||||
import socket
|
||||
|
||||
import frontend
|
||||
import errors
|
||||
@@ -377,6 +378,9 @@ class CLI(object):
|
||||
if callable(cmd.output_for_cli):
|
||||
cmd.output_for_cli(ret)
|
||||
return 0
|
||||
except socket.error, e:
|
||||
print e[1]
|
||||
return 1
|
||||
except errors.GenericError, err:
|
||||
code = getattr(err,'faultCode',None)
|
||||
faultString = getattr(err,'faultString',None)
|
||||
|
||||
Reference in New Issue
Block a user