Skip to content

Commit a0de22d

Browse files
author
Kevin Turner
committed
[project @ examples/consumer.py: remove reference to HTTPFetchingError and openid.yadis]
these may be treated as implementation details the caller doesn't need to know about.
1 parent b02caa4 commit a0de22d

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎examples/consumer.py‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def quoteattr(s):
3939
from openid.consumer import consumer
4040
from openid.oidutil import appendArgs
4141
from openid.cryptutil import randomString
42-
from openid.yadis.discover import DiscoveryFailure
4342
from openid.fetchers import \
4443
HTTPFetchingError, setDefaultFetcher, Urllib2Fetcher
4544
from openid import sreg
@@ -168,13 +167,7 @@ def doVerify(self):
168167
oidconsumer = self.getConsumer()
169168
try:
170169
request = oidconsumer.begin(openid_url)
171-
except HTTPFetchingError, exc:
172-
fetch_error_string = 'Error in discovery: %s' % (
173-
cgi.escape(str(exc.why)))
174-
self.render(fetch_error_string,
175-
css_class='error',
176-
form_contents=openid_url)
177-
except DiscoveryFailure, exc:
170+
except consumer.DiscoveryFailure, exc:
178171
fetch_error_string = 'Error in discovery: %s' % (
179172
cgi.escape(str(exc[0])))
180173
self.render(fetch_error_string,

0 commit comments

Comments
 (0)