Skip to content

Commit

Permalink
Renamed search_db since it is more generic than that
Browse files Browse the repository at this point in the history
  • Loading branch information
MrElendig committed Jul 3, 2013
1 parent 6e610f3 commit cce6330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/kittypack
Expand Up @@ -34,7 +34,7 @@ import yaml
import collections


def search_db(url, params):
def query_remote(url, params):
req = requests.get(url, params=params)
if req.status_code == requests.codes.ok:
fields = ("parsed", "raw", "url")
Expand Down Expand Up @@ -103,7 +103,7 @@ if __name__ == "__main__":
sys.exit(1)

try:
resp = search_db(config["search_url"], params)
resp = query_remote(config["search_url"], params)
except requests.exceptions.HTTPError as e:
print("Error recieved from remote:", file=sys.stderr)
print(e.args)
Expand Down

0 comments on commit cce6330

Please sign in to comment.