mirror of
https://github.com/chubin/cheat.sh.git
synced 2024-12-02 07:50:04 +03:00
minor fix
This commit is contained in:
parent
83d30141bc
commit
9d41d6c390
@ -38,7 +38,7 @@ class CommandAdapter(Adapter):
|
||||
if cmd:
|
||||
try:
|
||||
proc = Popen(cmd, stdout=PIPE, stderr=PIPE)
|
||||
answer = proc.communicate()[0].decode('utf-8')
|
||||
answer = proc.communicate()[0].decode('utf-8', 'ignore')
|
||||
except OSError:
|
||||
return "ERROR of the \"%s\" adapter: please create an issue" % self._adapter_name
|
||||
return answer
|
||||
|
Loading…
Reference in New Issue
Block a user