Skip to content

Got an error #1

Description

@allenchak
python3 /opt/homebrew/lib/python3.11/site-packages/rtspscanner.py -m scan -c admin:admin -a 192.168.1.118 -p 554
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/rtspscanner.py", line 321, in <module>
    main()
  File "/opt/homebrew/lib/python3.11/site-packages/rtspscanner.py", line 274, in main
    scanner.scanner()
  File "/opt/homebrew/lib/python3.11/site-packages/rtspscanner.py", line 132, in scanner
    self.scanResults = {"cameras":self.cameras,"flaky":flaky,"portscan":results}
                                                       ^^^^^
UnboundLocalError: cannot access local variable 'flaky' where it is not associated with a value

Using:

  • macOS Big Sur 11.2.2
  • Python 3.11.3
  • pip 23.0.1
  • beard-portscan 0.1.5
  • Pillow 9.5.0
  • requests 2.31.0
  • rtspscanner 0.1.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions