diff mbox

server/autotest.py: Make an error message become an info message

Message ID 1281379096-28942-1-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues Aug. 9, 2010, 6:38 p.m. UTC
None
diff mbox

Patch

diff --git a/server/autotest.py b/server/autotest.py
index f918b27..eb25095 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -213,11 +213,10 @@  class BaseAutotest(installable_object.InstallableObject):
             try:
                 self._install_using_packaging(host, autodir)
                 return
-            except global_config.ConfigError, e:
+            except (error.PackageInstallError, error.AutoservRunError,
+                    global_config.ConfigError), e:
                 logging.info("Could not install autotest using the packaging "
-                             "system: %s",  e)
-            except (error.PackageInstallError, error.AutoservRunError), e:
-                logging.error("Could not install autotest from repos")
+                             "system: %s. Trying other methods",  e)
 
         # try to install from file or directory
         if self.source_material: