[XM][ACM] Add try,catch back to main() for dry-run

Signed-off-by: Alastair Tse <atse@xensource.com>
Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
This commit is contained in:
atse@norwich.uk.xensource.com committed 2006-09-22 17:46:32 +01:00
1 parent 3b61bd783a
commit 3918261f47
1 file changed
+4 -3
+4 -3
View File
@@ -32,8 +32,9 @@ def help():
individually along with the final security decision."""
def main (argv):
if len(argv) != 2:
raise OptionError('Invalid number of arguments')
try:
if len(argv) != 2:
raise OptionError('Invalid number of arguments')
passed = 0
(opts, config) = create.parseCommandLine(argv)
@@ -42,7 +43,7 @@ def main (argv):
passed = 1
else:
print "Checking resources: (skipped)"
if passed:
print "Dry Run: PASSED"
else:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.