mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 11:57:49 +00:00
Added the fix for UnboundLocalError: local variable 'data' referenced before assignment
Signed-off-by: shivam <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -324,7 +324,6 @@ class APLIBS:
|
||||
expected_attachment_type=allure.attachment_type.JSON)
|
||||
|
||||
try_again = False
|
||||
|
||||
try:
|
||||
data = dict(json.loads(output.replace("\n\t", "").replace("\n", "")))
|
||||
except Exception as e:
|
||||
@@ -339,7 +338,7 @@ class APLIBS:
|
||||
try:
|
||||
data = dict(json.loads(output.replace("\n\t", "").replace("\n", "")))
|
||||
except Exception as e:
|
||||
output
|
||||
data = output
|
||||
logging.error("error in converting the ubus call ucentral status output to json" + output)
|
||||
ret_val = data
|
||||
return ret_val
|
||||
|
||||
Reference in New Issue
Block a user