You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repo[some_unicode_commit_sha] throws a KeyError when it should raise a TypeError (because unicode is now allowed).
def__getitem__(self, name):
### Skipped because isinstance check does not holdiflen(name) in (20, 40) andisinstance(name, str):
try:
returnself.object_store[name]
except (KeyError, ValueError):
pass### Fails because sha is no reftry:
returnself.object_store[self.refs[name]]
exceptRefFormatError:
raiseKeyError(name)
The text was updated successfully, but these errors were encountered:
repo[some_unicode_commit_sha]
throws aKeyError
when it should raise aTypeError
(because unicode is now allowed).The text was updated successfully, but these errors were encountered: