Use positional only format.

This commit is contained in:
Alex Root Junior 2017-07-25 04:45:33 +03:00
parent ea611e9fc9
commit 92253ba77a
7 changed files with 38 additions and 20 deletions

View file

@ -66,7 +66,7 @@ class Deserializable:
Bot instance
"""
if not hasattr(self, '_bot'):
raise AttributeError(f"{self.__class__.__name__} is not configured.")
raise AttributeError("{0} is not configured.".format(self.__class__.__name__))
return getattr(self, '_bot')
@bot.setter