diff --git a/gui/wxpython/psmap/frame.py b/gui/wxpython/psmap/frame.py index e0a5d20a0fa..b31b154d924 100644 --- a/gui/wxpython/psmap/frame.py +++ b/gui/wxpython/psmap/frame.py @@ -513,7 +513,10 @@ def OnCmdDone(self, event): if event.userData["temp"]: grass.try_remove(event.userData["filename"]) - self.delayedCall = wx.CallLater(4000, lambda: self.SetStatusText("", 0)) + self.delayedCall = wx.CallLater( + 4000, + lambda: self.SetStatusText("", 0) if self else None, + ) def getFile(self, wildcard): suffix = []