summaryrefslogtreecommitdiffstats
path: root/unitest.py
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2015-02-20 22:59:00 +0100
committernicolargo <nicolashennion@gmail.com>2015-02-20 22:59:00 +0100
commitfc869b7a2169f1b64cd467c17f9386de5e09ed4f (patch)
tree09c02442238977a42c4837c60b17d881c698d17f /unitest.py
parent0a99b139b6da59aa4cc5138d03f658928a4a213c (diff)
Correct an issue on the latest commit, cause unitary tests failed
Diffstat (limited to 'unitest.py')
-rwxr-xr-xunitest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/unitest.py b/unitest.py
index d01693c7..123783e4 100755
--- a/unitest.py
+++ b/unitest.py
@@ -78,14 +78,14 @@ class TestGlances(unittest.TestCase):
print('INFO: [TEST_000] Test the stats update function')
try:
stats.update()
- except:
- print('ERROR: Stats update failed')
+ except Exception as e:
+ print('ERROR: Stats update failed ({})'.format(e))
self.assertTrue(False)
time.sleep(1)
try:
stats.update()
- except:
- print('ERROR: Stats update failed')
+ except Exception as e:
+ print('ERROR: Stats update failed ({})'.format(e))
self.assertTrue(False)
self.assertTrue(True)