Don't use len(SEQUENCE) as condition value (#7249)
* Don't use len(SEQUENCE) as condition value * Update volvooncall.py
This commit is contained in:
parent
15b2473224
commit
cfc023e128
43 changed files with 319 additions and 355 deletions
|
@ -242,7 +242,7 @@ def slugify(value):
|
|||
if value is None:
|
||||
raise vol.Invalid('Slug should not be None')
|
||||
slg = util_slugify(str(value))
|
||||
if len(slg) > 0:
|
||||
if slg:
|
||||
return slg
|
||||
raise vol.Invalid('Unable to slugify {}'.format(value))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue