fix none regex

This commit is contained in:
Florian Bezannier
2021-04-13 16:43:39 +02:00
parent c502fa257b
commit 271e2764f4
+2
View File
@@ -20,6 +20,8 @@ class CarModel:
self.max_fuel_consumption = max_fuel_consumption
def match(self, vin):
if self.reg is None:
return False
return re.match(self.reg, vin) is not None
@staticmethod