diff --git a/qt_ui/models.py b/qt_ui/models.py index 441fa1dc..f968605b 100644 --- a/qt_ui/models.py +++ b/qt_ui/models.py @@ -312,9 +312,12 @@ class AtoModel(QAbstractListModel): index = self.ato.packages.index(package) self.beginRemoveRows(QModelIndex(), index, index) for flight in package.flights: - self.game_model.game.blue.callsign_generator.release_callsign( - flight.callsign - ) + # Check if flight.callsign is None to handle case where callsign was not generated. + # This can happen when a module does not support the standard callsigns e.g. Kiowa. + if flight.callsign is not None: + self.game_model.game.blue.callsign_generator.release_callsign( + flight.callsign + ) self.ato.remove_package(package) self.endRemoveRows() # noinspection PyUnresolvedReferences