mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
improve error message
This commit is contained in:
parent
f438f14d13
commit
48c02dd53a
|
@ -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__()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user