diff options
author | Filipp Lepalaan <f@230.to> | 2013-09-06 18:57:45 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-09-06 18:57:45 +0300 |
commit | f637233e97c1dee118097b25869a880df640ba8b (patch) | |
tree | 6ec3a48b34c1c3a2ba27568a2d61f8a20e20ccaa /gsxws/core.py | |
parent | 3f2fc53c57606a110162eccc2409f5bcc1172af0 (diff) | |
download | py-gsxws-f637233e97c1dee118097b25869a880df640ba8b.tar.gz py-gsxws-f637233e97c1dee118097b25869a880df640ba8b.tar.bz2 py-gsxws-f637233e97c1dee118097b25869a880df640ba8b.zip |
Show invalid value in validate()
Diffstat (limited to 'gsxws/core.py')
-rw-r--r-- | gsxws/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsxws/core.py b/gsxws/core.py index 9769da5..9791850 100644 --- a/gsxws/core.py +++ b/gsxws/core.py @@ -116,7 +116,7 @@ def validate(value, what=None): result = None if not isinstance(value, basestring): - raise ValueError('%s is not valid input') + raise ValueError('%s is not valid input' % value) rex = { 'partNumber': r'^([A-Z]{1,2})?\d{3}\-?(\d{4}|[A-Z]{1,2})(/[A-Z])?$', |