Explorar o código

[sqoop] Log all caught naked "except:" blocks

Erick Tryzelaar %!s(int64=10) %!d(string=hai) anos
pai
achega
e0d752457b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      apps/sqoop/src/sqoop/tests.py

+ 1 - 0
apps/sqoop/src/sqoop/tests.py

@@ -126,6 +126,7 @@ class TestSqoopClientLinks(TestSqoopServerBase):
       assert_true(link3.id)
       assert_equal(link3.name, link3.name)
     except:
+      LOG.exception('failed to test link')
       self.client.delete_link(link3)
 
   def test_get_links(self):