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
What happened:
the delivery-service shows such error
2024-12-09 09:51:39,710 [WARNING] k8s.util: no bdba-cfg found for internal
2024-12-09 09:51:39,723 [ERROR] middleware.errors: Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/middleware/errors.py", line 20, in middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/middleware/auth.py", line 588, in middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/middleware/db_session.py", line 32, in middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/middleware/route_feature_check.py", line 49, in middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/aiohttp/web_urldispatcher.py", line 975, in _iter
ret = await method()
^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/service_extensions.py", line 197, in get
data=k8s.util.iter_scan_configurations(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/k8s/util.py", line 260, in iter_scan_configurations
if bdba_cfg:
^^^^^^^^
UnboundLocalError: cannot access local variable 'bdba_cfg' where it is not associated with a value
original code first tries to get bdba_cfg in a try-except logic, but the bdba_cfg is anyway accessed later in the if statement which in this case results the error shown above.
What happened:
the delivery-service shows such error
original code first tries to get
bdba_cfg
in a try-except logic, but thebdba_cfg
is anyway accessed later in the if statement which in this case results the error shown above.Besides that:
my cfg_factory looks like following:
so i do not understand why no bdba-cfg found for internal error pops up
What you expected to happen:
bdba_cfg
should only be used when try block succeeded.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
Environment:
The text was updated successfully, but these errors were encountered: