Skip to content

Commit 62a095e

Browse files
NodeCommandError.__str__: Address Python 3.6+
Unify message among all supported Python versions by removing the trailing period from basic CalledProcessError.__str__ introduced in 3.6
1 parent 5c46c49 commit 62a095e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodely/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ def __init__(self, returncode, cmd, cwd):
2222

2323
def __str__(self):
2424
return "{} in working directory {!r}".format(
25-
super(NodeCommandError, self).__str__(), self.cwd)
25+
super(NodeCommandError, self).__str__().rstrip("."), self.cwd)

0 commit comments

Comments
 (0)