Commit d0e0db5b authored by Franziska Koehn's avatar Franziska Koehn
Browse files

print and todo removed

parent 93268eff
......@@ -37,8 +37,6 @@ def download(result, host, creds, rest, dest_folder='', cb=(lambda *_: None), cb
path = os.path.join(dest_folder, '-'.join(names))
url = "%s%s" % (host, ret)
print (path, url, creds)
download_file(url, creds, path)
requests_lock.release()
cb(*cb_args)
......@@ -75,8 +73,6 @@ def search_for(host, root_element, constraints, search_fields, user, passw):
from httplib2 import ServerNotFoundError
from httplib import ResponseNotReady
from tempfile import mkdtemp
tmp_dir=mkdtemp()
......@@ -87,7 +83,7 @@ def search_for(host, root_element, constraints, search_fields, user, passw):
password=passw,
cachedir=tmp_dir)
except IndexError as e:
raise xsa_errors.ServerNotFoundError("Server not found, check your host-address.") #TODO Ok?
raise xsa_errors.ServerNotFoundError("Server not found, check your host-address.")
result = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment