aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/core.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-09-06 18:57:45 +0300
committerFilipp Lepalaan <f@230.to>2013-09-06 18:57:45 +0300
commitf637233e97c1dee118097b25869a880df640ba8b (patch)
tree6ec3a48b34c1c3a2ba27568a2d61f8a20e20ccaa /gsxws/core.py
parent3f2fc53c57606a110162eccc2409f5bcc1172af0 (diff)
downloadpy-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.py2
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])?$',