Skip to content

Commit

Permalink
fix for Nonetype: None in the ERROR logs
Browse files Browse the repository at this point in the history
Signed-off-by: Gulshan Bhatia <[email protected]>
  • Loading branch information
Gulshan Bhatia committed Jul 2, 2024
1 parent b8b8f2b commit 3fd4655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion numalogic/udfs/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def exec(self, keys: list[str], datum: Datum) -> Messages:
msgs = Messages(get_trainer_message(keys, _stream_conf, payload))
if _conf.numalogic_conf.score.adjust:
msgs.append(get_static_thresh_message(keys, payload))
logger.exception("Artifact model not loaded!")
logger.error("Artifact model not loaded!")
return msgs

# Perform inference
Expand Down
2 changes: 1 addition & 1 deletion numalogic/udfs/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def exec(self, keys: list[str], datum: Datum) -> Messages:
msgs = Messages(get_trainer_message(keys, _stream_conf, payload))
if _conf.numalogic_conf.score.adjust:
msgs.append(get_static_thresh_message(keys, payload))
logger.exception("Artifact model not loaded!")
logger.error("Artifact model not loaded!")
return msgs
# Model will not be in registry
else:
Expand Down

0 comments on commit 3fd4655

Please sign in to comment.