SF.net SVN: fclient: [46] trunk/fclient/fclient_lib/fcp/fcp2_0.py
Status: Pre-Alpha
Brought to you by:
jurner
From: <jU...@us...> - 2007-11-05 12:43:06
|
Revision: 46 http://fclient.svn.sourceforge.net/fclient/?rev=46&view=rev Author: jUrner Date: 2007-11-05 04:43:07 -0800 (Mon, 05 Nov 2007) Log Message: ----------- error handling Modified Paths: -------------- trunk/fclient/fclient_lib/fcp/fcp2_0.py Modified: trunk/fclient/fclient_lib/fcp/fcp2_0.py =================================================================== --- trunk/fclient/fclient_lib/fcp/fcp2_0.py 2007-11-05 12:42:27 UTC (rev 45) +++ trunk/fclient/fclient_lib/fcp/fcp2_0.py 2007-11-05 12:43:07 UTC (rev 46) @@ -1057,9 +1057,13 @@ def pythonTime(self, fcpTime): """Converts a fcp time value to a python time value @param fcpTime: (int, str) time to convert + @raise ValueError: if the fcpTime could not be converted @return: (int) python time """ - fcpTime = int(fcpTime) + try: + fcpTime = int(fcpTime) + except Exception, d: + raise ValueError(d) return fcpTime / 1000 ######################################################## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |