PaloAltoNetworks / panhandler

Panhandler is a tool to manage config snippets and Skillets for PAN-OS devices
Apache License 2.0
41 stars 19 forks source link

Crash when git origin is not present #172

Closed nembery closed 4 years ago

nembery commented 4 years ago

Very rare corner case, but should be handled none-the-less

AttributeError at /panhandler/repos

'IterableList' object has no attribute 'origin'

Request Method: GET Request URL: http://localhost:8081/panhandler/repos Django Version: 3.0.5 Exception Type: AttributeError Exception Value:

'IterableList' object has no attribute 'origin'

Exception Location: /usr/local/lib/python3.6/site-packages/git/util.py in getattr, line 873 Python Executable: /usr/local/bin/python3 Python Version: 3.6.10 Python Path:

['/usr/local/lib/python3.6/site-packages/git/ext/gitdb', '/app/cnc', '/app/src', '/app/cnc', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/site-packages/gitdb/ext/smmap']

Server time: Wed, 8 Apr 2020 17:48:22 +0000