Skip to content

Commit

Permalink
more python error logging; fix requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
haseebrabbani committed Sep 3, 2021
1 parent 682a843 commit 9ebe297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cli/utils/get.python.agent.handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,11 @@ while True:
delete promiseCallbackMap[hash]
})
.on("stderr", function (err) {
console.log(err)
const hash = Object.keys(promiseCallbackMap)[0]
if (hash && promiseCallbackMap[hash]) {
const { reject } = promiseCallbackMap[hash]
reject(new Error(`python: ${err}`))
} else {
console.log(err)
}
})

Expand Down
2 changes: 1 addition & 1 deletion starter-project/py/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
forta_agent
forta_agent>=0.0.2

0 comments on commit 9ebe297

Please sign in to comment.