You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
unable to add scope due to missing tags
To Reproduce
Steps to reproduce the behavior:
source venv
python3 add-scope.py scope.txt --verbose
Expected behavior
expect scope to be added to db
Additional context
python3 add-scope.py --scope scope.txt --verbose
Traceback (most recent call last):
File "add-scope.py", line 58, in <module>
main()
File "add-scope.py", line 53, in main
importScope(args.scope, False, args.verbose)
File "add-scope.py", line 23, in importScope
fail, exist, success = ScopeItem.importScope(line, blacklist)
File "/opt/natlas2/natlas-server/app/models.py", line 156, in importScope
if tags:
UnboundLocalError: local variable 'tags' referenced before assignment
The text was updated successfully, but these errors were encountered:
Thank you for your bug report. It slipped through my testing (and since it's manual testing right now, that's especially prone to happening). Luckily it was an easy fix.
Affecting:
Server
Version:
main branch
Describe the bug
unable to add scope due to missing tags
To Reproduce
Steps to reproduce the behavior:
Expected behavior
expect scope to be added to db
Additional context
The text was updated successfully, but these errors were encountered: