Update scrapy/utils/conf.py

Co-authored-by: Adrián Chaves <adrian@chaves.io>
This commit is contained in:
Ammar Najjar 2020-08-26 11:44:20 +00:00 committed by GitHub
parent ea03e4254f
commit 9aaddcde0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ def build_component_list(compdict, custom=None, convert=update_classpath):
for name, value in compdict.items():
if value is not None and not isinstance(value, numbers.Real):
raise ValueError(f'Invalid value {value} for component {name}, '
'please provide a real number or None instead'
)
'please provide a real number or None instead')
# BEGIN Backward compatibility for old (base, custom) call signature
if isinstance(custom, (list, tuple)):