Fix up a few errors that sneaked in while updating vmenu code and a couple other things. Logs should be much nicer now.

This commit is contained in:
Storm Dragon
2025-06-25 10:55:48 -04:00
parent b1edc53362
commit 40b88efa34
5 changed files with 143 additions and 2 deletions

View File

@ -174,7 +174,8 @@ class settingsManager():
def loadDriver(self, driverName, driverType):
try:
self.env['runtime'][driverType].shutdown(self.env)
if self.env['runtime'][driverType] is not None:
self.env['runtime'][driverType].shutdown(self.env)
except Exception as e:
self.env['runtime']['debug'].writeDebugOut('settingsManager loadDriver: Error shutting down driver: ' + str(e), debug.debugLevel.ERROR)
try: