FogBugz » FogBugzPy A Python wrapper for the FogBugz API Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

Explicitly specify that the API stream is XML also.

Changeset 79d9f08a8c91

Parent 1d7f1811b729

by Jason R. Coombs

Changes to one file · Browse files at 79d9f08a8c91 Showing diff from parent 1d7f1811b729 Diff from another changeset...

Change 1 of 1 Show Entire File fogbugz.py Stacked
 
43
44
45
46
 
 
47
48
49
 
43
44
45
 
46
47
48
49
50
@@ -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))