Skip to content

Commit

Permalink
catch XML-RPC faults and issue warning, fixes #223
Browse files Browse the repository at this point in the history
  • Loading branch information
posativ committed Nov 19, 2014
1 parent 57d3c5e commit 08be2ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acrylamid/tasks/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def search_link(content):
if not dryrun:
server = xmlrpclib.ServerProxy(server_url)
server.pingback.ping(src, dest)

except xmlrpclib.Fault as e:
log.warn("XML-RPC fault: %d (%s)", e.faultCode, e.faultString)
except xmlrpclib.ProtocolError as e:
raise AcrylamidException(e.args[0])

Expand Down

0 comments on commit 08be2ae

Please sign in to comment.