Changeset 79d9f08a8c91…
Parent 1d7f1811b729…
by
Changes to one file · Browse files at 79d9f08a8c91 Showing diff from parent 1d7f1811b729 Diff from another changeset...
@@ -43,7 +43,8 @@
self._opener = urllib_request.build_opener()
try:
- soup = BeautifulSoup(self._opener.open(url + 'api.xml'))
+ stream = self._opener.open(url + 'api.xml')
+ soup = BeautifulSoup(stream, 'xml')
except (urllib_request.URLError, urllib_request.HTTPError):
e = sys.exc_info()[1]
raise FogBugzConnectionError("Library could not connect to the FogBugz API. Either this installation of FogBugz does not support the API, or the url, %s, is incorrect.\n\nError: %s" % (self._url, e))
|
Loading...