Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with phone lookup #14

Open
D3sp1r4t opened this issue Jan 23, 2024 · 1 comment
Open

Problems with phone lookup #14

D3sp1r4t opened this issue Jan 23, 2024 · 1 comment

Comments

@D3sp1r4t
Copy link

As i type number, it crashes with:

/Hackerwasi/Hackerwasi.py", line 195, in <module>
    searchNumber(settings.codemonpays)
File "/home/d3sp1r4t/Oh no, my osint collection/Hackerwasi/core/searchNumber.py", line 64, in searchNumber
    phone.search(num)

  File "/home/d3sp1r4t/Oh no, my osint collection/Hackerwasi/core/searchInfoNumero.py", line 36, in search
    operator = p[2]
               ~^^^
IndexError: list index out of range
@ritimx
Copy link

ritimx commented Jul 31, 2024

It looks like you're experiencing an IndexError when trying to access the third element of a list (p[2]) that doesn't exist.

To troubleshoot this issue, I'd recommend adding some error handling and logging to understand what's going on. Here's an updated version of the search method in searchInfoNumero.py:

def search(self, num):
    try:
        # ... (rest of the code remains the same)
        p = [...]  # assuming p is a list
        if len(p) < 3:
            print(f"Error: list 'p' has only {len(p)} elements, expected at least 3")
            return None
        operator = p[2]
        # ... (rest of the code remains the same)
    except IndexError as e:
        print(f"Error: {e}")
        return None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants