fix: prestart.sh rollback after each plugin activation failure
This commit is contained in:
@@ -133,6 +133,7 @@ async def auto_activate_plugins():
|
|||||||
print(f'[prestart] Activated plugin: {name}')
|
print(f'[prestart] Activated plugin: {name}')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f'[prestart] WARNING: Could not activate plugin {name}: {e}')
|
print(f'[prestart] WARNING: Could not activate plugin {name}: {e}')
|
||||||
|
await db.rollback()
|
||||||
await db.commit()
|
await db.commit()
|
||||||
print('[prestart] Plugin auto-activation complete.')
|
print('[prestart] Plugin auto-activation complete.')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user