diff --git a/scripts/db_migrator.py b/scripts/db_migrator.py index 6c8ef21b6f..02673e625e 100755 --- a/scripts/db_migrator.py +++ b/scripts/db_migrator.py @@ -890,7 +890,7 @@ def common_migration_ops(self): # removed together with calling to migrate_copp_table function. if self.asic_type != "mellanox": self.migrate_copp_table() - if self.asic_type == "broadcom" and 'Force10-S6100' in self.hwsku: + if self.asic_type == "broadcom" and self.hwsku and 'Force10-S6100' in self.hwsku: self.migrate_mgmt_ports_on_s6100() else: log.log_notice("Asic Type: {}, Hwsku: {}".format(self.asic_type, self.hwsku))