Return an error instead of panicking in parseToot

This commit is contained in:
Christian Muehlhaeuser 2019-08-08 06:17:52 +02:00
parent 388aa2c5ec
commit 6e0c280ea1
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
1 changed files with 1 additions and 1 deletions

View File

@ -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