Remove unnecessary string literal concatenations (#30360)

This commit is contained in:
Ville Skyttä 2020-01-02 21:17:10 +02:00 committed by GitHub
parent cac750066a
commit e6388e186c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
183 changed files with 362 additions and 393 deletions

View file

@ -544,7 +544,7 @@ def socket_timeout(value: Optional[Any]) -> object:
float_value = float(value)
if float_value > 0.0:
return float_value
raise vol.Invalid("Invalid socket timeout value." " float > 0.0 required.")
raise vol.Invalid("Invalid socket timeout value. float > 0.0 required.")
except Exception as _:
raise vol.Invalid("Invalid socket timeout: {err}".format(err=_))