improve error message

This commit is contained in:
Dhaval Mehta 2020-02-19 23:22:05 +05:30
parent f438f14d13
commit 48c02dd53a

View File

@ -74,7 +74,7 @@ class AutoSchema(ViewInspector):
def __init__(self, tags=None):
if tags and not all(isinstance(tag, str) for tag in tags):
raise ValueError('tags must be a list of string.')
raise ValueError('tags must be a list or tuple of string.')
self._tags = tags
super().__init__()