MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / unpickle

Method unpickle

bbot/core/engine.py:58–65  ·  view source on GitHub ↗
(self, binary)

Source from the content-addressed store, hash-verified

56 return error_sentinel
57
58 def unpickle(self, binary):
59 try:
60 return pickle.loads(binary)
61 except Exception as e:
62 self.log.error(f"Error deserializing binary: {e}")
63 self.log.trace(f"Offending binary: {binary}")
64 self.log.trace(traceback.format_exc())
65 return error_sentinel
66
67 async def _infinite_retry(self, callback, *args, **kwargs):
68 interval = kwargs.pop("_interval", 300)

Callers 3

run_and_returnMethod · 0.80
run_and_yieldMethod · 0.80
workerMethod · 0.80

Calls 2

errorMethod · 0.45
traceMethod · 0.45

Tested by

no test coverage detected