Changeset 570:61d53ccbdd70 in documentViewer for MpiwgXmlTextServer.py


Ignore:
Timestamp:
Oct 12, 2012, 2:01:41 PM (12 years ago)
Author:
casties
Branch:
default
Message:

more resilience to server errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpiwgXmlTextServer.py

    r568 r570  
    260260            textParams['outputFormat'] = 'html'
    261261       
    262         # fetch the page
    263         pagexml = self.getServerData("query/GetPage",urllib.urlencode(textParams))
    264262        try:
     263            # fetch the page
     264            pagexml = self.getServerData("query/GetPage",urllib.urlencode(textParams))
    265265            dom = ET.fromstring(pagexml)
    266266        except Exception, e:
    267             logging.error("Error parsing page: %s"%e)
     267            logging.error("Error reading page: %s"%e)
    268268            return None
    269269       
Note: See TracChangeset for help on using the changeset viewer.