feat: optimize code
This commit is contained in:
@@ -25,7 +25,7 @@ async def perform_general_operation(
|
|||||||
if 'error' in module_query_result:
|
if 'error' in module_query_result:
|
||||||
return module_query_result
|
return module_query_result
|
||||||
|
|
||||||
module_config = module_query_result.get('result', {"": ""}).get('moduleConfig', None)
|
module_config = (module_query_result.get('result', None) or {}).get('moduleConfig', None)
|
||||||
|
|
||||||
if module_config is not None:
|
if module_config is not None:
|
||||||
module_config = json.loads(module_config)
|
module_config = json.loads(module_config)
|
||||||
|
|||||||
Reference in New Issue
Block a user