mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-07 10:33:41 +00:00
nit: continue on db lookup failure
This commit is contained in:
parent
a5f8864058
commit
b3712250b8
@ -159,7 +159,7 @@ class Command:
|
|||||||
handler_class = self.DB_HANDLERS.get(database)
|
handler_class = self.DB_HANDLERS.get(database)
|
||||||
if handler_class is None:
|
if handler_class is None:
|
||||||
print(f"No handler found for database '{database}'")
|
print(f"No handler found for database '{database}'")
|
||||||
return
|
continue
|
||||||
handler_instance = handler_class() # Instantiate the class
|
handler_instance = handler_class() # Instantiate the class
|
||||||
# If the DB can handle this cmd dispatch it.
|
# If the DB can handle this cmd dispatch it.
|
||||||
if hasattr(handler_instance, cmd) and callable(
|
if hasattr(handler_instance, cmd) and callable(
|
||||||
|
Loading…
Reference in New Issue
Block a user