Skip to content

Commit

Permalink
Change warning icon to be a string instead of bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Apr 30, 2024
1 parent 5683459 commit 4ff42ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lizmap_server/get_legend_graphic.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def warning_icon(cls) -> str:
buffer.open(QIODevice.WriteOnly)
qp = QImage(":/images/themes/default/mIconWarning.svg")
qp.save(buffer, "PNG")
return str(buffer.data().toBase64().data())
return bytes(buffer.data().toBase64().data()).decode()

@exception_handler
def responseComplete(self):
Expand Down

0 comments on commit 4ff42ce

Please sign in to comment.