diff options
Diffstat (limited to 'gd_diff.py')
-rw-r--r-- | gd_diff.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -19,7 +19,7 @@ import requests from os import path from subprocess import run, PIPE from urllib.parse import urljoin -from xmlrpc.client import ServerProxy, MultiCall, Fault +from xmlrpc.client import ServerProxy, MultiCall, Fault, ProtocolError from bs4 import BeautifulSoup from pkg_resources import resource_string @@ -437,6 +437,9 @@ def get_wiki_mc(url, user, passwd): # pragma: no cover except Fault as f: print(f.faultString) exit(1) + except ProtocolError as p: + print('Protocal Error: {} {}'.format(p.errcode, p.errmsg)) + exit(1) mc = MultiCall(conn) mc.applyAuthToken(token) |