From 57b3f022ba76cfbb2efa8e80349fb550afee1fc5 Mon Sep 17 00:00:00 2001 From: zblurx Date: Thu, 5 Jun 2025 15:45:16 +0200 Subject: [PATCH] update db mismatch error printed --- nxc/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nxc/database.py b/nxc/database.py index da280848..15abc761 100644 --- a/nxc/database.py +++ b/nxc/database.py @@ -170,10 +170,10 @@ class BaseDB: return reflected_table except (NoInspectionAvailable, NoSuchTableError, ValueError) as e: - print(e) print( f""" - [-] Error reflecting table {table.__tablename__} for the {self.protocol} protocol - this means there is a DB schema mismatch + [-] Error reflecting table {table.__tablename__} for the {self.protocol} protocol: + [-] {e} - This means there is a DB schema mismatch [-] This is probably because a newer version of nxc is being run on an old DB schema [-] Optionally save the old DB data (`cp {self.db_path} ~/nxc_{self.protocol.lower()}.bak`) [-] Then remove the {self.protocol} DB (`rm -f {self.db_path}`) and run nxc to initialize the new DB"""