diff --git a/pyzipcode/__init__.py b/pyzipcode/__init__.py index da3b76b..295d8a8 100644 --- a/pyzipcode/__init__.py +++ b/pyzipcode/__init__.py @@ -1,4 +1,4 @@ -from settings import db_location +from .settings import db_location try: import sqlite3 except ImportError: @@ -16,7 +16,7 @@ def __init__(self): conn = sqlite3.connect(db_location) conn.close() - def query(self, sql, args): + def query(self, sql, args=tuple()): conn = None retry_count = 0 while not conn and retry_count <= 10: