Skip to content

Commit

Permalink
Addresss pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Marceau authored and henryiii committed Apr 7, 2017
1 parent b5caa23 commit 843b21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plumbum/cli/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ def _handle_argument(val, argtype, name):
return argtype(val)
except (TypeError, ValueError):
ex = sys.exc_info()[1] # compat
raise WrongArgumentType("Argument of %s expected to be %r, not %r:\n %r" % (
name, str(argtype), val, ex))
raise WrongArgumentType("Argument of {name} expected to be {argtype}, not {val!r}:\n {ex!r}".format(
name=name, argtype=argtype, val=val, ex=ex))
else:
return NotImplemented

Expand Down

0 comments on commit 843b21e

Please sign in to comment.