talentmap_api/integrations/models.py
Showing 3 of 3 total issues
Function synchronize
has a Cognitive Complexity of 42 (exceeds 7 allowed). Consider refactoring. Open
Open
def synchronize(self, soap_function="IPMSDataWebService", test=False): ''' Runs the SynchronizationJob Args:
- Read upRead up
Avoid deeply nested control flow statements. Open
Open
with client.options(timeout=int(get_delineated_environment_variable('SOAP_TIMEOUT', 180))): response_xml = ET.tostring(getattr(client.service, soap_function_name)(**soap_arguments), encoding="unicode") except TimeoutException as e:
Avoid deeply nested control flow statements. Open
Open
if attempts > max_attempts: logger.error(f"SOAP call for {task} exceeded max attempts.") break else: