Skip to content
This repository was archived by the owner on Oct 14, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyzipcode/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from settings import db_location
from .settings import db_location
try:
import sqlite3
except ImportError:
Expand All @@ -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:
Expand Down