mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-23 01:46:14 +00:00
fix none regex
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user