Skip to content

Commit 5cbcbc6

Browse files
authored
gui: Fix using formatting for a string that does not have any interpolated variables in core.menutree (OSGeo#4874)
1 parent 04a564a commit 5cbcbc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gui/wxpython/core/menutree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def collectParents(node, parents):
256256
else:
257257
import grass.script.core as gscore
258258

259-
gscore.fatal("Unknown value for parameter menu: " % menu)
259+
gscore.fatal("Unknown value for parameter menu: %s" % menu)
260260

261261
if action == "strings":
262262
menudata.PrintStrings(sys.stdout)
@@ -269,6 +269,6 @@ def collectParents(node, parents):
269269
else:
270270
import grass.script.core as gscore
271271

272-
gscore.fatal("Unknown value for parameter action: " % action)
272+
gscore.fatal("Unknown value for parameter action: %s" % action)
273273

274274
sys.exit(0)

0 commit comments

Comments
 (0)