[GRASS-git] [OSGeo/grass] bc685a: wxGUI/dbmgr: Show proper error when table parsing ...

Vaclav Petras noreply at github.com
Tue Nov 24 18:19:29 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: bc685a8593c1010ae9d00d8c3e531ac172a585bd
      https://github.com/OSGeo/grass/commit/bc685a8593c1010ae9d00d8c3e531ac172a585bd
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2020-11-24 (Tue, 24 Nov 2020)

  Changed paths:
    M gui/wxpython/dbmgr/base.py

  Log Message:
  -----------
  wxGUI/dbmgr: Show proper error when table parsing failed (#1112)

When parsing of a row fails, instead of trying to show error message
(and getting the GUI in a partially frozen state), raise exception
which the caller code expects and shows the message in a window
and allows user to continue working (although no table content is displayed).

The message also contains more details and suggests most likely cause (and fix).

Explicitly return None to make the intention clear.

This is a quick-fix. The real fix would be to use real CSV or JSON format and
parser as noted in the comment.




More information about the grass-commit mailing list