Failed Assassin disable raises error
This commit is contained in:
parent
6dac98835f
commit
ff54373b0f
1 changed files with 4 additions and 2 deletions
|
|
@ -144,7 +144,8 @@ class ProfileController:
|
||||||
from core.controllers.ConnectionController import ConnectionController
|
from core.controllers.ConnectionController import ConnectionController
|
||||||
|
|
||||||
if profile.is_session_profile():
|
if profile.is_session_profile():
|
||||||
print(f"wipe_assassin is {wipe_assassin}")
|
|
||||||
|
# START ASSASSIN SECTION
|
||||||
if profile.assassin and wipe_assassin:
|
if profile.assassin and wipe_assassin:
|
||||||
print("triggering to WIPE assassin")
|
print("triggering to WIPE assassin")
|
||||||
assassin_result = assassin_tools.wipe(
|
assassin_result = assassin_tools.wipe(
|
||||||
|
|
@ -155,7 +156,8 @@ class ProfileController:
|
||||||
if not assassin_result.valid:
|
if not assassin_result.valid:
|
||||||
error_msg = f"Error with wiping respawn of Assassin: {assassin_result.error_type} & {assassin_result.message}"
|
error_msg = f"Error with wiping respawn of Assassin: {assassin_result.error_type} & {assassin_result.message}"
|
||||||
logger.error(error_msg)
|
logger.error(error_msg)
|
||||||
# raise ProfileDeactivationError(f'Assassin NOT disabled: {assassin_result.message}')
|
raise ProfileDeactivationError(f'Assassin NOT disabled: {assassin_result.message}')
|
||||||
|
# END ASSASSIN SECTION
|
||||||
|
|
||||||
if SessionStateController.exists(profile.id):
|
if SessionStateController.exists(profile.id):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue