Check relevant character before accessing it
This commit is contained in:
parent
f205b5824c
commit
452a340fff
@ -58,12 +58,12 @@ func Get(ctx *aero.Context) string {
|
||||
for characterID := range characterAppearances {
|
||||
relevantCharacter, err := arn.GetCharacter(characterID)
|
||||
|
||||
if !relevantCharacter.HasImage() {
|
||||
if err != nil {
|
||||
color.Red(err.Error())
|
||||
continue
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
color.Red(err.Error())
|
||||
if !relevantCharacter.HasImage() {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user