Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Commit

Permalink
Make some textual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Feb 20, 2015
1 parent 5d58852 commit d0b53a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lmgtfy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def form_valid(self, form):
if not domain_is_whitelisted:
messages.info(
self.request,
"Sorry, we currently cannot search this domain (%s)." % domain
"Sorry, but to limit the cost of running this service, we have not enabled searching this domain name (%s)." % domain
)
return HttpResponseRedirect(resolve_url('home'))

Expand All @@ -46,7 +46,7 @@ def form_valid(self, form):
else:
messages.info(
self.request,
"A background task has been created and you shall soon see the results!"
"Gathering results now. They will be displayed shortly."
)
return HttpResponseRedirect(
resolve_url('domain_result', domain)
Expand All @@ -66,7 +66,7 @@ def get_queryset(self):
domain = self.kwargs['domain']
fmt = self.kwargs.get('fmt')
except:
raise Exception('Invalid url parameter has been passed.')
raise Exception('Invalid URL parameter has been passed.')

qs = qs.filter(
search_instance__domain__name=domain
Expand All @@ -89,7 +89,7 @@ def get_context_data(self, **kwargs):
if search_being_performed:
messages.info(
self.request,
"We're gather more results right now... This page will refresh in 10 seconds"
"We're gathering more results right now. This page will refresh in 10 seconds."
)
context['refresh_counter'] = 10
return context
Expand Down

0 comments on commit d0b53a6

Please sign in to comment.