diff --git a/lib/githubstats.rb b/lib/githubstats.rb
index <HASH>..<HASH> 100644
--- a/lib/githubstats.rb
+++ b/lib/githubstats.rb
@@ -147,7 +147,7 @@ module GithubStats
       http.use_ssl = true
       res = http.get(uri.request_uri)
       code = res.code
-      raise("Failed loading data from GitHub: #{url} #{code}") if code != 200
+      raise("Failed loading data from GitHub: #{url} #{code}") if code != "200"
       html = Nokogiri::HTML(res.body)
       html.css('.day').map do |x|
         x.attributes.values_at('data-date', 'data-count').map(&:value)
Stringified code

I got an error message for a <I> code, so I'm guessing the code has been converted to a string. Otherwise I have no idea what the issue is, so I'm giving this a shot.