Changeset 3ccccfa4e780…
Parent baf67913559d…
by
Changes to one file · Browse files at 3ccccfa4e780 Showing diff from parent baf67913559d Diff from another changeset...
@@ -26,7 +26,7 @@ self._opener = urllib2.build_opener()
try:
soup = BeautifulSoup(self._opener.open(url + 'api.xml'))
- except URLError:
+ except urllib2.URLError:
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." % (self._url,))
self._url = url + soup.response.url.string
self.currentFilter = None
@@ -71,8 +71,8 @@ except urllib2.URLError, e:
raise FogBugzConnectionError(e)
except UnicodeDecodeError, e:
- print kwargs
- raise
+ print kwargs
+ raise
if response.error:
raise FogBugzAPIError('Error Code %s: %s' % (response.error['code'], response.error.string,))
|
Loading...