Add custom exception

pull/327/head
alex martin shepherd 2023-03-03 12:47:43 +01:00 zatwierdzone przez GitHub
rodzic 92a7cbac35
commit 2905c07863
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -341,7 +341,10 @@ class Mastodon(Internals):
# Determine users to mention
mentioned_accounts = collections.OrderedDict()
mentioned_accounts[to_status.account.id] = to_status.account.acct
try:
mentioned_accounts[to_status.account.id] = to_status.account.acct
except AttributeError as e:
raise TypeError("to_status must specify a status dict!") from e
if not untag:
for account in to_status.mentions: