Commit 1bb5168b authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1404] don't do anything if the DB doesn't exist

parent 4d3aef6a
......@@ -28,6 +28,11 @@ if len(args) == 0:
parser.error('missing argument')
db_file = args[0]
# If the file doesn't exist, there's nothing to do
if not os.path.exists(db_file):
sys.exit(0)
conn = sqlite3.connect(db_file)
cur = conn.cursor()
try:
......
Markdown is supported
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