Skip to content

Commit

Permalink
Fixing exception during request_uri on non-http
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Kim authored and chriskite committed Feb 17, 2011
1 parent 8c00ee7 commit 3c80a22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/anemone/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def visit_link?(link, from_page = nil)
#
def allowed(link)
@opts[:obey_robots_txt] ? @robots.allowed?(link) : true
rescue
false
end

#
Expand Down

0 comments on commit 3c80a22

Please sign in to comment.