fix(security): add logging to all except/pass blocks (B110)

This commit is contained in:
TPTBusiness
2026-04-29 18:38:19 +02:00
parent 52b73fc1bf
commit b5fb769b9c
17 changed files with 21 additions and 5 deletions
@@ -1,3 +1,4 @@
import logging
from __future__ import annotations
import subprocess
+1 -1
View File
@@ -355,7 +355,7 @@ def evaluate_kronos_model(
predicted_returns.append(pred_ret)
actual_returns.append(actual_ret)
except Exception:
pass
logging.debug("Exception caught", exc_info=True)
pred_arr = np.array(predicted_returns)
actual_arr = np.array(actual_returns)
@@ -1,3 +1,4 @@
import logging
import math
from typing import Any, Callable, Dict, Optional, Union
@@ -1,3 +1,4 @@
import logging
import copy
import torch
@@ -1,3 +1,4 @@
import logging
import inspect
from typing import Any, Dict, Optional
@@ -1,3 +1,4 @@
import logging
import math
import torch
@@ -1,3 +1,4 @@
import logging
from typing import Optional
import torch
@@ -1,3 +1,4 @@
import logging
import math
from typing import Optional, Tuple
@@ -1,3 +1,4 @@
import logging
"""
This is just an exmaple.
It will be replaced wtih a list of ground truth tasks.