Commit c23a7d55 authored by thomas.forbriger's avatar thomas.forbriger

csbackchk: fix python syntax

parent bc281a9d
......@@ -135,6 +135,9 @@ def main(argv=None):
console.setFormatter(logging.Formatter( \
'%(name)-8s [%(lineno)d]: %(levelname)-8s %(message)s'))
# prepare message for try-except-else conditional
abortmessage="program aborts unexpectedly; checks are not completed!"
# fetch arguments
if argv is None:
argv = sys.argv
......@@ -239,7 +242,6 @@ def main(argv=None):
logger.getLogger().info( \
"Check of files in '{0}' finished.".format(path[1]))
abortmessage="program aborts unexpectedly; checks are not completed!"
except Usage as err:
sys.stderr.write(str(err))
return err.errorCode
......
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