Return an error instead of panicking in parseToot

pull/6/head
Christian Muehlhaeuser 2019-08-08 06:17:52 +02:00
rodzic 388aa2c5ec
commit 6e0c280ea1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 3CF9FA45CA1EBB7E
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -71,7 +71,7 @@ func parseToot(status *mastodon.Status, stats *stats) error {
if status.InReplyToID == nil {
contexts, err := client.GetStatusContext(context.Background(), status.ID)
if err != nil {
panic(err)
return err
}
// handle replies for this status