Skip to content

Commit

Permalink
Update sdk/search/azure-search-documents/azure/search/documents/_serv…
Browse files Browse the repository at this point in the history
…ice/_utils.py
  • Loading branch information
Rakshith Bhyravabhotla authored May 1, 2020
1 parent 4a3e126 commit b0ca117
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ def get_access_conditions(model, match_condition=MatchConditions.Unconditionally
404: ResourceNotFoundError
}

if not hasattr(model, 'e_tag'):
try:
_unicode_type = unicode
except NameError:
_unicode_type = str
if isinstance(model, _unicode_type):
return (error_map, None)

try:
Expand Down

0 comments on commit b0ca117

Please sign in to comment.