refactor: remove redundant else block for unexpected exception handling in P30 negative check script

pull/12760/head
vijay sharma 4 months ago
parent 0162dc252c
commit 7eb8a4ea64

@ -54,11 +54,11 @@ def check_p30_neg():
print("P30_NEG_EXPECTED_BLOCK")
print("[OK] Blocked by Market Hours despite Live Enablement.")
sys.exit(0)
else:
# Unexpected error: Log with traceback
logger.error(f"Caught unexpected exception: {msg}", exc_info=True)
print(f"ERROR: Unexpected exception: {msg}")
sys.exit(1)
# Unexpected error: Log with traceback
logger.error(f"Caught unexpected exception: {msg}", exc_info=True)
print(f"ERROR: Unexpected exception: {msg}")
sys.exit(1)
if __name__ == "__main__":

Loading…
Cancel
Save