Index: lnt/server/db/migrations/upgrade_15_to_16.py =================================================================== --- lnt/server/db/migrations/upgrade_15_to_16.py +++ lnt/server/db/migrations/upgrade_15_to_16.py @@ -15,7 +15,7 @@ try: fast_fc_lookup.create(engine) except (sqlalchemy.exc.OperationalError, sqlalchemy.exc.ProgrammingError) as e: - logger.warning("Skipping index creation on {}, because of {}".format(fc_table.name, e.message)) + logger.warning("Skipping index creation on {}, because of {}".format(fc_table.name, e)) def upgrade(engine): Index: lnt/server/db/migrations/upgrade_16_to_17.py =================================================================== --- lnt/server/db/migrations/upgrade_16_to_17.py +++ lnt/server/db/migrations/upgrade_16_to_17.py @@ -15,7 +15,7 @@ try: fast_fc_lookup.create(engine) except (sqlalchemy.exc.OperationalError, sqlalchemy.exc.ProgrammingError) as e: - logger.warning("Skipping index creation on {}, because of {}".format(fc_table.name, e.message)) + logger.warning("Skipping index creation on {}, because of {}".format(fc_table.name, e)) def upgrade(engine): Index: lnt/tests/test_suite.py =================================================================== --- lnt/tests/test_suite.py +++ lnt/tests/test_suite.py @@ -634,7 +634,7 @@ return json.loads(open(output_json_path.name).read()) except ValueError as e: fatal("Running test-suite did not create valid json report " - "in {}: {}".format(output_json_path.name, e.message)) + "in {}: {}".format(output_json_path.name, e)) def _is_pass_code(self, code): return code in ('PASS', 'XPASS', 'XFAIL') Index: lnt/util/ImportData.py =================================================================== --- lnt/util/ImportData.py +++ lnt/util/ImportData.py @@ -112,7 +112,7 @@ raise except Exception as e: import traceback - result['error'] = "import failure: %s" % e.message + result['error'] = "import failure: %s" % e result['message'] = traceback.format_exc() if isinstance(e, lnt.server.db.testsuitedb.MachineInfoChanged): result['message'] += \