From 9510619b7b89f9adb3ad44f3f5377d3abd43bcbf Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 1 Nov 2012 15:24:32 -0400 Subject: [PATCH] ENH: minor -- print out why skipping a backend while testing --- fail2ban-testcases | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fail2ban-testcases b/fail2ban-testcases index 0160781d..ea95e9c5 100755 --- a/fail2ban-testcases +++ b/fail2ban-testcases @@ -142,14 +142,14 @@ filters = [FilterPoll] # always available try: from server.filtergamin import FilterGamin filters.append(FilterGamin) -except: - pass +except Exception, e: + print "I: Skipping gamin backend testing. Got exception '%s'" % e try: from server.filterpyinotify import FilterPyinotify filters.append(FilterPyinotify) -except: - pass +except Exception, e: + print "I: Skipping pyinotify backend testing. Got exception '%s'" % e for Filter_ in filters: tests.addTest(unittest.makeSuite(