From: akl Date: Wed, 24 Apr 2013 12:56:27 +0000 (+0000) Subject: Fix to raise error correctly. X-Git-Tag: V7_2_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ddc09ba0d8fd587ac4d3c55d81a43cbdb1fee5f;p=modules%2Fparavis.git Fix to raise error correctly. --- diff --git a/src/PV_SWIG/presentations.py b/src/PV_SWIG/presentations.py index cb2c5fd3..4d6396c2 100644 --- a/src/PV_SWIG/presentations.py +++ b/src/PV_SWIG/presentations.py @@ -983,7 +983,7 @@ def get_time(proxy, timestamp_nb): # Check timestamp number timestamps = proxy.TimestepValues.GetData() if ((timestamp_nb - 1) not in xrange(len(timestamps))): - raise ValueError("Timestamp number is out of range: " + timestamp_nb) + raise ValueError("Timestamp number is out of range: " + str(timestamp_nb)) # Return time value return timestamps[timestamp_nb - 1]