]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix to raise error correctly.
authorakl <akl@opencascade.com>
Wed, 24 Apr 2013 12:56:27 +0000 (12:56 +0000)
committerakl <akl@opencascade.com>
Wed, 24 Apr 2013 12:56:27 +0000 (12:56 +0000)
src/PV_SWIG/presentations.py

index cb2c5fd3260509cc6837bd8319695f8cfbc5a7bc..4d6396c20953865d4e1d2ae189d006fff7e30904 100644 (file)
@@ -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]