gns-deb-diff

automate the documentation of the differences between gNewSense and Debian.
git clone git://git.ricketyspace.net/gns-deb-diff.git
Log | Files | Refs

commit 4ccc5101fff7f2a859d0adb6b3943ac3b54c8927
parent 6251b0201ccb0c1fe62fd8359fabcee7e795f6f1
Author: rsiddharth <s@ricketyspace.net>
Date:   Thu,  2 Mar 2017 00:47:10 +0000

gd_diff: Update `get_wiki_mc`.

* gd_diff.py (get_wiki_mc): Update function.
* gns_deb_diff/_version.py (__version__): Update variable.

Diffstat:
gd_diff.py | 5++++-
gns_deb_diff/_version.py | 2+-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gd_diff.py b/gd_diff.py @@ -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) diff --git a/gns_deb_diff/_version.py b/gns_deb_diff/_version.py @@ -5,4 +5,4 @@ # gns-deb-diff is under the Public Domain. See # <https://creativecommons.org/publicdomain/zero/1.0> -__version__ = '0.1.0' +__version__ = '0.1.1.dev1'