From 6ddc09ba0d8fd587ac4d3c55d81a43cbdb1fee5f Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 24 Apr 2013 12:56:27 +0000 Subject: [PATCH] Fix to raise error correctly. --- src/PV_SWIG/presentations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.39.2