Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def details(wsdl, site):
if not wsdl:
raise ValidationError({
'error': 'Required argument: wsdl'})
if not site:
raise ValidationError({
'error': 'Required argument: site'})
if not wsdl.upper().endswith('?WSDL'):
wsdl += '?WSDL'
from ulmo.cuahsi import wof
return wof.get_site_info(wsdl, site, None)