Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Pokemon Information Error

Aperta
#37 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

Direzione di ricerca

Start by reproducing the Pokedex initialization described in the issue and isolate the first failing Pokémon, beginning with deoxys. Compare the failing height access with the standalone .height access, then verify that initialization completes for all 898 Pokémon and that the listed cases no longer require the try/except workaround.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Screen Shot 2022-03-16 at 22 13 24

So I have the really clunky, awful code above in a program I am running (I know there are functions to do this, but I had to do it on my own using certain commands for a class), and I am trying to initialize a "Pokedex" for all 898 Pokemon. However I keep getting height errors for the following Pokemon:
deoxys
wormadam
giratina
shaymin
basculin
darmanitan
tornadus
thundurus
landorus
keldeo
meloetta
meowstic
aegislash
pumpkaboo
gourgeist
zygarde
oricorio
lycanroc
wishiwashi
minior
mimikyu
toxtricity
eiscue
indeedee
morpeko
urshifu

I don't exactly know what the error is, but I know it doesn't like it and I had to add the try/except here so it would at least initialize what it could. I just no it freaks out whenever it gets to those Pokemon, so I thought I would let you know.
Screen Shot 2022-03-16 at 22 11 39

This is a screenshot of the error that I get when it gets to deoxys, again not sure why that's happening because when I use the .height outside of this function for deoxys, it works just fine.
Please let me know, thank you.

Lingua principale
Python
Stelle
361
Fork
58
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PokeAPI/pokebase

Tutte le issue di PokeAPI/pokebase

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.