Skip to content

Commit

Permalink
Check first if the value was found about LWC version in the table fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jun 28, 2024
1 parent e6b4b77 commit 1afffa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lizmap/server_lwc.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def check_lwc_version(self, version_check: str) -> bool:
""" Check if the given LWC version is at least in the table. """
for row in range(self.table.rowCount()):
lwc_version = self.table.item(row, TableCell.LizmapVersion.value).data(Qt.DisplayRole)
if lwc_version.startswith(version_check):
if lwc_version and lwc_version.startswith(version_check):
return True

return False
Expand Down

0 comments on commit 1afffa0

Please sign in to comment.