Skip to content

Commit

Permalink
Merge pull request #15 from mmacata/empty-message-fix
Browse files Browse the repository at this point in the history
Avoid error on logging of empty messages
  • Loading branch information
mmacata authored Sep 25, 2023
2 parents 99b0c1d + 66c509c commit 2710f9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/grass_gis_helpers/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def run_module_parallel(
msg = proc.outputs["stderr"].value.strip()
grass.message(_(f"\nLog of {proc.get_bash()}:"))
for msg_part in msg.split("\n"):
grass.message(_(msg_part))
if len(msg_part) > 0:
grass.message(msg_part)

# verify that switching the mapset worked
location_path = verify_mapsets(start_cur_mapset)
Expand Down

0 comments on commit 2710f9c

Please sign in to comment.