Clarify GuidMixin.validate_guid if

merge-requests/130/head
Jason Robinson 2016-09-15 19:46:45 +03:00
rodzic 52d667a17f
commit 110751b810
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -74,7 +74,7 @@ class GUIDMixin(BaseEntity):
self._required += ["guid"]
def validate_guid(self):
if self.guid and len(self.guid) < 16:
if len(self.guid) < 16:
raise ValueError("GUID must be at least 16 characters")