Minor refactoring:

- removed remaining assertions
- quotes replaced with double quotes in f-strings
This commit is contained in:
Suren Khorenyan 2018-02-12 22:06:05 +03:00
parent 5a905abe87
commit 70fb332fd3
5 changed files with 9 additions and 7 deletions

View file

@ -239,7 +239,7 @@ class BaseBot:
setattr(self, '_parse_mode', None)
else:
if not isinstance(value, str):
raise TypeError(f"Parse mode must be an 'str' not {type(value)}")
raise TypeError(f"Parse mode must be str, not {type(value)}")
value = value.lower()
if value not in ParseMode.all():
raise ValueError(f"Parse mode must be one of {ParseMode.all()}")