Commit dc415d2d authored by Daniel Armbruster's avatar Daniel Armbruster Committed by thomas.forbriger
Browse files

catch exception

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 5058
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 51d761a8
......@@ -32,9 +32,10 @@
# ----
# REVISIONS and CHANGES
# 24/02/2013 V0.1 Daniel Armbruster
# 06/03/2013 V0.2 provide option to select copy command
# 07/03/2013 V1.0 provide '-newer' option
# 24/02/2013 V0.1 Daniel Armbruster
# 06/03/2013 V0.2 provide option to select copy command
# 07/03/2013 V1.0 provide '-newer' option
# 14/03/2013 V1.0.1 catch timeout conversion exception
#
# ============================================================================
#
......@@ -51,7 +52,7 @@ import csbackErrorCodes as eCodes
import csbacklog
import pidlock
__version__ = "V1.0"
__version__ = "V1.0.1"
__subversion__ = "$Id$"
__license__ = "GPLv2+"
__author__ = "Daniel Armbruster"
......@@ -185,7 +186,11 @@ def main(argv=None):
logger.configure()
elif opt in ("-L", "--Lock"):
pidLock = True
lockTimeOut=float(arg)
try:
lockTimeOut=float(arg)
except:
raise Usage("Invalid timeout passed.", \
eCodes.GLOBAL_InvalidCmdlineArgs)
elif opt in ("-n", "--dry-run"):
dryRunMode = True
elif opt in ("-c", "--copy"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment