Skip to content

Commit

Permalink
fix(adapters): use issubclass
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Apr 26, 2017
1 parent 9a2c8f1 commit 3ee09e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grappa_http/adapters/__init__.py
Expand Up @@ -40,7 +40,7 @@ def use_adapter(*_adapters):
*adapters (grappa_http.BaseAdapter): adapter or adapters to use.
"""
for adapter in _adapters:
if not isinstance(adapter, BaseAdapter):
if not issubclass(adapter, BaseAdapter):
raise TypeError('adapter must inherit from '
'grappa_http.BaseAdapter')

Expand Down

0 comments on commit 3ee09e5

Please sign in to comment.