diff options
author | nicolargo <nicolashennion@gmail.com> | 2015-02-20 22:59:00 +0100 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2015-02-20 22:59:00 +0100 |
commit | fc869b7a2169f1b64cd467c17f9386de5e09ed4f (patch) | |
tree | 09c02442238977a42c4837c60b17d881c698d17f /unitest.py | |
parent | 0a99b139b6da59aa4cc5138d03f658928a4a213c (diff) |
Correct an issue on the latest commit, cause unitary tests failed
Diffstat (limited to 'unitest.py')
-rwxr-xr-x | unitest.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |