Mercurial > hg > documentViewer
diff MpiwgXmlTextServer.py @ 570:61d53ccbdd70
more resilience to server errors.
author | casties |
---|---|
date | Fri, 12 Oct 2012 16:01:41 +0200 |
parents | 694935574177 |
children | 51800c42bcda |
line wrap: on
line diff
--- a/MpiwgXmlTextServer.py Fri Oct 12 15:34:37 2012 +0200 +++ b/MpiwgXmlTextServer.py Fri Oct 12 16:01:41 2012 +0200 @@ -259,12 +259,12 @@ textParams['mode'] = 'untokenized' textParams['outputFormat'] = 'html' - # fetch the page - pagexml = self.getServerData("query/GetPage",urllib.urlencode(textParams)) try: + # fetch the page + pagexml = self.getServerData("query/GetPage",urllib.urlencode(textParams)) dom = ET.fromstring(pagexml) except Exception, e: - logging.error("Error parsing page: %s"%e) + logging.error("Error reading page: %s"%e) return None pagediv = None