From fe2f05f3d8f0a14ec70cc6ad768f8f24225b290a Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 4 Jan 2010 14:17:56 -0800 Subject: Catch an error in the lint call --- src/fedpkg.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fedpkg.py b/src/fedpkg.py index f2131cf..e80b982 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -66,7 +66,11 @@ def install(args): def lint(args): mymodule = fedpkg.PackageModule(args.path) - print(mymodule.lint()) + try: + print(mymodule.lint()) + except fedpkg.FedpkgError, e: + print('Could not run rpmlint: %s' % e) + return 1 def local(args): # not implimented -- cgit