Show More
@@ -110,7 +110,7 def _widget_abbrev(o): | |||
|
110 | 110 | elif _matches(o, [float_or_int]*4): |
|
111 | 111 | min, low, high, max = o |
|
112 | 112 | if not min <= low <= high <= max: |
|
113 |
raise ValueError("Range input expects min <= low <= high <= max, got |
|
|
113 | raise ValueError("Range input expects min <= low <= high <= max, got {0}".format(o)) | |
|
114 | 114 | if all(isinstance(_, int) for _ in o): |
|
115 | 115 | cls = IntRangeSliderWidget |
|
116 | 116 | else: |
@@ -119,7 +119,7 def _widget_abbrev(o): | |||
|
119 | 119 | elif _matches(o, [float_or_int]*5): |
|
120 | 120 | min, low, high, max, step = o |
|
121 | 121 | if not min <= low <= high <= max: |
|
122 |
raise ValueError("Range input expects min <= low <= high <= max, got |
|
|
122 | raise ValueError("Range input expects min <= low <= high <= max, got {0}".format(o)) | |
|
123 | 123 | if step <= 0: |
|
124 | 124 | raise ValueError("step must be >= 0, not %r" % step) |
|
125 | 125 | if all(isinstance(_, int) for _ in o): |
General Comments 0
You need to be logged in to leave comments.
Login now