Skip to content

Commit

Permalink
IdentityMapKeyError is an IndexError
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jul 13, 2012
1 parent 1828908 commit 5503704
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/twitter/identity_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module Twitter
class IdentityMap < Hash
end

class IdentityMapKeyError < ::StandardError
# Inherit from KeyError when Ruby 1.8 compatibility is removed
class IdentityMapKeyError < ::IndexError
end

end

0 comments on commit 5503704

Please sign in to comment.