Skip to content

Commit 10915f2

Browse files
committed
catch tcc error
1 parent dda798d commit 10915f2

File tree

1 file changed

+10
-7
lines changed
  • src/mvt/ios/modules/mixed

1 file changed

+10
-7
lines changed

src/mvt/ios/modules/mixed/tcc.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,16 @@ def process_db(self, file_path):
116116
)
117117
db_version = "v2"
118118
except sqlite3.OperationalError:
119-
cur.execute(
120-
"""SELECT
121-
service, client, client_type, allowed,
122-
prompt_count
123-
FROM access;"""
124-
)
125-
db_version = "v1"
119+
try:
120+
cur.execute(
121+
"""SELECT
122+
service, client, client_type, allowed,
123+
prompt_count
124+
FROM access;"""
125+
)
126+
db_version = "v1"
127+
except sqlite3.OperationalError as e:
128+
self.log.error(f"Error parsing TCC database: {e}")
126129

127130
for row in cur:
128131
service = row[0]

0 commit comments

Comments
 (0)