Skip to content

No topic selected error not handled in data_loader_widget #14

@romainreignier

Description

@romainreignier

If one does not select a topic, the selected row is -1 and the .text() throws an exception here:

row = self.tableWidget.currentRow()
topicName = self.tableWidget.item(row, 0).text()

There should be a check if row == -1 or catch the exception.

For now, the Add Layer button stays disabled and with the Loading... text on the bag dialog.

I am not a Python developer so I am not sure how to best catch the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions