File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def __init__(self, dbPath):
3232 argsAndReturnValue = self ._sanitize_args_dict (plistlib .readPlistFromString (row [2 ].encode ('utf-8' )))))
3333 rowid += 1
3434 except sqlite3 .Error as e :
35- print "Fatal error: %s" % e
35+ # print "Fatal error: %s" % e
3636 raise
3737 finally :
3838 if SqlConn :
Original file line number Diff line number Diff line change 88__copyright__ = "Copyright 2013, iSEC Partners, Inc."
99
1010from sys import argv
11+ import os
1112from argparse import ArgumentParser
1213from re import match
1314from DBAnalyzer import DBAnalyzer
@@ -68,6 +69,10 @@ def main(argv):
6869
6970
7071 # Process the DB
72+ # Make sure it's there
73+ if not os .path .exists (db_path ): # Nice race condition
74+ print 'Error: Could not find the DB file.'
75+ return
7176 analyzedDB = DBAnalyzer (db_path )
7277
7378
You can’t perform that action at this time.
0 commit comments