Skip to content

Commit c020c34

Browse files
author
Richard Jones
committed
better error message
1 parent ef328d1 commit c020c34

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

roundup/backends/back_anydbm.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.70 2002-09-04 04:29:36 richard Exp $
18+
#$Id: back_anydbm.py,v 1.71 2002-09-04 07:12:19 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in a database
2121
chosen by anydbm. It is guaranteed to always be available in python
@@ -803,8 +803,8 @@ def create(self, **propvalues):
803803
l = []
804804
for entry in value:
805805
if type(entry) != type(''):
806-
raise ValueError, '"%s" link value (%s) must be '\
807-
'String'%(key, value)
806+
raise ValueError, '"%s" multilink value (%r) '
807+
'must contain Strings'%(key, value)
808808
# if it isn't a number, it's a key
809809
if not num_re.match(entry):
810810
try:
@@ -1909,6 +1909,9 @@ def __init__(self, db, classname, **properties):
19091909

19101910
#
19111911
#$Log: not supported by cvs2svn $
1912+
#Revision 1.70 2002/09/04 04:29:36 richard
1913+
#bugfix
1914+
#
19121915
#Revision 1.69 2002/09/03 07:33:01 richard
19131916
#allow overiding of the index args roundup/cgi/templating.py
19141917
#

roundup/backends/back_gadfly.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_gadfly.py,v 1.12 2002-09-04 04:30:18 richard Exp $
1+
# $Id: back_gadfly.py,v 1.13 2002-09-04 07:12:19 richard Exp $
22
__doc__ = '''
33
About Gadfly
44
============
@@ -923,8 +923,8 @@ def create(self, **propvalues):
923923
l = []
924924
for entry in value:
925925
if type(entry) != type(''):
926-
raise ValueError, '"%s" link value (%s) must be '\
927-
'String'%(key, value)
926+
raise ValueError, '"%s" multilink value (%r) '
927+
'must contain Strings'%(key, value)
928928
# if it isn't a number, it's a key
929929
if not num_re.match(entry):
930930
try:
@@ -1758,6 +1758,9 @@ def __init__(self, db, classname, **properties):
17581758

17591759
#
17601760
# $Log: not supported by cvs2svn $
1761+
# Revision 1.12 2002/09/04 04:30:18 richard
1762+
# bugfix
1763+
#
17611764
# Revision 1.11 2002/09/03 22:11:50 richard
17621765
# *** empty log message ***
17631766
#

0 commit comments

Comments
 (0)