[GRASS-git] [OSGeo/grass] 63a344: grass.script: Reveal the failed type passed to dec...

Vaclav Petras noreply at github.com
Wed Apr 23 15:59:46 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 63a34417dfa698980bacdf870d8bfb556ae53a8b
      https://github.com/OSGeo/grass/commit/63a34417dfa698980bacdf870d8bfb556ae53a8b
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2025-04-23 (Wed, 23 Apr 2025)

  Changed paths:
    M python/grass/script/utils.py

  Log Message:
  -----------
  grass.script: Reveal the failed type passed to decode (#5581)

The decode function from utils raises TypeError when the type is not bytes or str. This also makes it include the type of the passed object in the message. Practically, this will be often NoneType (you use decode, but you don't have Popen configured properly).



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list