def _downloadAsFile(self, url, filename): try: return Util.wget_as_xml(url, filename) except urllib2.URLError, ex: raise InputException('Failed to download: %s, with detail: %s' % (url, str(ex)))