瀏覽代碼

wxGUI: remove unnecessary printing of invalid map size (#2146)

Anna Petrasova 3 年之前
父節點
當前提交
76cf64cad2
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      gui/wxpython/core/render.py

+ 0 - 3
gui/wxpython/core/render.py

@@ -1018,9 +1018,6 @@ class Map(object):
             self.width = int(size[0])
             self.height = int(size[1])
             if self.width < 1 or self.height < 1:
-                sys.stderr.write(
-                    _("Invalid map size %d,%d\n") % (self.width, self.height)
-                )
                 raise ValueError
         except ValueError:
             self.width = 640