Skip to content

Commit

Permalink
behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriy Brukhovetskyy committed Jan 9, 2025
1 parent 11fb7b1 commit fd82d00
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions modules/processing/behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -1183,8 +1183,6 @@ def run(self):
"""

behavior = []
print(path_exists(self.logs_path), len(os.listdir(self.logs_path)))
breakpoint()
if path_exists(self.logs_path) and len(os.listdir(self.logs_path)) != 0:
behavior = {"processes": Processes(self.logs_path, self.task, self.options).run()}

Expand Down Expand Up @@ -1225,10 +1223,8 @@ def run(self):
return behavior

with open(json_path) as f:
details = json.load(f)
import code

code.interact(local=dict(locals(), **globals()))
behavior = details.get("behavior", [])
self.results["info"] = details.get("info", [])
try:
behavior = json.load(f).get("behavior", [])
except Exception as e:
log.error("Behavior. Can't load json: %s", str(e))
return behavior

0 comments on commit fd82d00

Please sign in to comment.