Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
Do not raise NNError with result code (missed change after recent (#30
Browse files Browse the repository at this point in the history
)

commits).
  • Loading branch information
wrobell authored and djc committed Sep 11, 2016
1 parent b1e1e73 commit 0452ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnpy/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def convert(rc, value=None):
error_no = nanomsg.nn_errno()
chars = nanomsg.nn_strerror(error_no)
msg = ffi.string(chars).decode()
raise NNError(rc, error_no, msg)
raise NNError(error_no, msg)
if callable(value):
return value()
return value
Expand Down

0 comments on commit 0452ee4

Please sign in to comment.