mirror of https://github.com/muesli/mastotool
Return an error instead of panicking in parseToot
This commit is contained in:
parent
388aa2c5ec
commit
6e0c280ea1
2
stats.go
2
stats.go
|
@ -71,7 +71,7 @@ func parseToot(status *mastodon.Status, stats *stats) error {
|
||||||
if status.InReplyToID == nil {
|
if status.InReplyToID == nil {
|
||||||
contexts, err := client.GetStatusContext(context.Background(), status.ID)
|
contexts, err := client.GetStatusContext(context.Background(), status.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle replies for this status
|
// handle replies for this status
|
||||||
|
|
Loading…
Reference in New Issue