Skip to content

Commit

Permalink
[Plugin installer] Remove trailing colon if it's a very end of the me…
Browse files Browse the repository at this point in the history
…ssage.
  • Loading branch information
borysiasty committed Dec 19, 2017
1 parent cefae89 commit 97018cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/pyplugin_installer/installer.py
Expand Up @@ -366,7 +366,9 @@ def installPlugin(self, key, quiet=False):

if infoString[0]:
level = error and QgsMessageBar.CRITICAL or QgsMessageBar.INFO
msg = "<b>%s:</b>%s" % (infoString[0], infoString[1])
msg = "<b>%s</b>" % infoString[0]
if infoString[1]:
msg += "<b>:</b> %s" % infoString[1]
iface.pluginManagerInterface().pushMessage(msg, level)

# ----------------------------------------- #
Expand Down Expand Up @@ -582,5 +584,7 @@ def installFromZipFile(self, filePath):

if infoString[0]:
level = error and QgsMessageBar.CRITICAL or QgsMessageBar.INFO
msg = "<b>%s:</b>%s" % (infoString[0], infoString[1])
msg = "<b>%s</b>" % infoString[0]
if infoString[1]:
msg += "<b>:</b> %s" % infoString[1]
iface.pluginManagerInterface().pushMessage(msg, level)

0 comments on commit 97018cf

Please sign in to comment.