FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #20 from ClimbsRocks/patch-1 · kliky/python-shell@dfc6721 · GitHub

Repository navigation

Commit dfc6721

Browse files
committed
Merge pull request extrabacon#20 from ClimbsRocks/patch-1
Removes obfuscating error handling when emitting messages
2 parents 8b98500 + 38a0716 commit dfc6721

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎index.js‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,7 @@ PythonShell.prototype.receive = function (data) {
212212
this._remaining = lastLine;
213213

214214
parts.forEach(function (part) {
215-
try {
216-
self.emit('message', self.parser(part));
217-
} catch(err) {
218-
self.emit('error', extend(
219-
new Error('invalid message: ' + data + ' >> ' + err),
220-
{ inner: err, data: part}
221-
));
222-
}
215+
self.emit('message', self.parser(part));
223216
});
224217

225218
return this;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL