1
0
mirror of https://github.com/muesli/mastotool synced 2024-12-22 23:58:13 +01:00

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

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