Skip to content
Snippets Groups Projects
Verified Commit affed57d authored by Janis Streib's avatar Janis Streib :owl:
Browse files

UPD: handle empty oui-lists with error (#802)

parent 7296f279
No related branches found
No related tags found
No related merge requests found
Pipeline #422738 passed
......@@ -16,6 +16,8 @@ if not settings.oui_lookup_disabled:
'https://standards-oui.ieee.org/oui36/oui36.txt']:
ouis = requests.get(oui).text.split('\n') # normal request, not with fastapi Request Object
last_hex = ''
if len(ouis) == 0:
raise ValueError(f'Empty OUI-DB from {oui}!')
for line in ouis:
if '(hex)' not in line:
if '(base 16)' in line:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment