Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Jul 15, 2019
1 parent cea7431 commit 0f81804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/script/task.py
Expand Up @@ -494,11 +494,11 @@ def get_interface_description(cmd):

if p.returncode != 0:
raise ScriptError(_("Unable to fetch interface description for command '<{cmd}>'."
"\n\nDetails: <{det}>".format(cmd=cmd, det=decode(cmderr))))
"\n\nDetails: <{det}>").format(cmd=cmd, det=decode(cmderr)))

except OSError as e:
raise ScriptError(_("Unable to fetch interface description for command '<{cmd}>'."
"\n\nDetails: <{det}>".format(cmd=cmd, det=e)))
"\n\nDetails: <{det}>").format(cmd=cmd, det=e))

desc = convert_xml_to_utf8(decode(cmdout))
desc = desc.replace(b'grass-interface.dtd',
Expand Down

0 comments on commit 0f81804

Please sign in to comment.