Revision b459a848 daemons/import-export
b/daemons/import-export | ||
---|---|---|
23 | 23 |
|
24 | 24 |
""" |
25 | 25 |
|
26 |
# pylint: disable-msg=C0103
|
|
26 |
# pylint: disable=C0103 |
|
27 | 27 |
# C0103: Invalid name import-export |
28 | 28 |
|
29 | 29 |
import errno |
... | ... | |
353 | 353 |
@return: Arguments to program |
354 | 354 |
|
355 | 355 |
""" |
356 |
global options # pylint: disable-msg=W0603
|
|
356 |
global options # pylint: disable=W0603 |
|
357 | 357 |
|
358 | 358 |
parser = optparse.OptionParser(usage=("%%prog <status-file> {%s|%s}" % |
359 | 359 |
(constants.IEM_IMPORT, |
... | ... | |
587 | 587 |
errmsg = "Exited with status %s" % (child.returncode, ) |
588 | 588 |
|
589 | 589 |
status_file.SetExitStatus(child.returncode, errmsg) |
590 |
except Exception, err: # pylint: disable-msg=W0703
|
|
590 |
except Exception, err: # pylint: disable=W0703 |
|
591 | 591 |
logging.exception("Unhandled error occurred") |
592 | 592 |
status_file.SetExitStatus(constants.EXIT_FAILURE, |
593 | 593 |
"Unhandled error occurred: %s" % (err, )) |
Also available in: Unified diff