Fix SenderGetter should not define abstract methods

Or at least it shouldn't if subclasses are likely to not
implement them, which causes an error if left un-implemented.
This commit is contained in:
Lonami Exo 2019-05-04 17:59:21 +02:00
parent 84c197be60
commit adc9b4c9f1

View File

@ -42,7 +42,7 @@ class SenderGetter(abc.ABC):
self._sender =\ self._sender =\
await self._client.get_entity(self._input_sender) await self._client.get_entity(self._input_sender)
except ValueError: except ValueError:
await self._reload_message() await self._refetch_sender()
return self._sender return self._sender
@property @property
@ -83,9 +83,3 @@ class SenderGetter(abc.ABC):
""" """
Re-fetches sender information through other means. Re-fetches sender information through other means.
""" """
@abc.abstractmethod
async def _reload_message(self):
"""
Subclasses should implement message reloading.
"""