Merge pull request #659 from mvt-project/fix/tcc

fix #579 TCC: no such table: access
This commit is contained in:
besendorf
2025-07-22 19:02:32 +02:00
committed by GitHub
+3
View File
@@ -116,6 +116,7 @@ class TCC(IOSExtraction):
) )
db_version = "v2" db_version = "v2"
except sqlite3.OperationalError: except sqlite3.OperationalError:
try:
cur.execute( cur.execute(
"""SELECT """SELECT
service, client, client_type, allowed, service, client, client_type, allowed,
@@ -123,6 +124,8 @@ class TCC(IOSExtraction):
FROM access;""" FROM access;"""
) )
db_version = "v1" db_version = "v1"
except sqlite3.OperationalError as e:
self.log.error(f"Error parsing TCC database: {e}")
for row in cur: for row in cur:
service = row[0] service = row[0]