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

Use a default empty set for usernames #4

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

ndrwrbgs
Copy link
Contributor

Use a default empty set for `usernames`

Fixes

```
Traceback (most recent call last):
  File "/Users/andrewa/stripe/Uscrapper/Uscrapper.py", line 138, in <module>
    extract_details(args.url, args.generate_report, args.nonstrict)
  File "/Users/andrewa/stripe/Uscrapper/Uscrapper.py", line 68, in extract_details
    if usernames:
UnboundLocalError: local variable 'usernames' referenced before assignment
```

on command `python Uscrapper.py  -u https://github.com/z0m31en7/Uscrapper/tree/main -O`

```
$ python -V
Python 3.9.11
```

    Use a default empty set for `usernames`
    
    Fixes
    
    ```
    Traceback (most recent call last):
      File "/Users/andrewa/stripe/Uscrapper/Uscrapper.py", line 138, in <module>
        extract_details(args.url, args.generate_report, args.nonstrict)
      File "/Users/andrewa/stripe/Uscrapper/Uscrapper.py", line 68, in extract_details
        if usernames:
    UnboundLocalError: local variable 'usernames' referenced before assignment
    ```
    
    on command `python Uscrapper.py  -u https://github.com/z0m31en7/Uscrapper/tree/main -O`
    
    ```
    $ python -V
    Python 3.9.11
    ```
@z0m31en7 z0m31en7 merged commit 8e87bba into z0m31en7:main Jul 27, 2023
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

Successfully merging this pull request may close these issues.

2 participants