AbirHasan2005 / AbirHasan2005/LittleBrother

Phone number lookup out of range

Aberta
#3 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
192
Forks
69
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Traceback (most recent call last):
File "/data/data/com.termux/files/home/LittleBrother/littlebrother.py", line 2002, in
searchNumber()
File "/data/data/com.termux/files/home/LittleBrother/littlebrother.py", line 1322, in searchNumber
phone.search(num)
File "/data/data/com.termux/files/home/LittleBrother/littlebrother.py", line 325, in search
operator = p[2]
~^^^
IndexError: list index out of range
![Screenshot_20230405-194209_Termux](https://user-images.githubusercontent.com/38822721/230244610-bd655b0e-1a45-4d37-95eb-719e685fe14c.jpg)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

The error occurs in littlebrother.py at line 325 in the search method, where accessing index 2 of list p causes an IndexError. Start by examining the phone number parsing logic leading up to that line, likely in the same file. Check what data structure p represents and ensure it has enough elements before accessing. Run the script with a test phone number to reproduce the issue and verify the fix.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
cli
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.