Prevent decoding None objects
This commit is contained in:
parent
ed05d843bc
commit
ada375b766
@ -11,7 +11,7 @@ __author__ = "Davide Testa"
|
|||||||
__email__ = "davide@davte.it"
|
__email__ = "davide@davte.it"
|
||||||
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
||||||
__license__ = "GNU General Public License v3.0"
|
__license__ = "GNU General Public License v3.0"
|
||||||
__version__ = "2.6.6"
|
__version__ = "2.6.7"
|
||||||
__maintainer__ = "Davide Testa"
|
__maintainer__ = "Davide Testa"
|
||||||
__contact__ = "t.me/davte"
|
__contact__ = "t.me/davte"
|
||||||
|
|
||||||
|
@ -1714,7 +1714,9 @@ async def aio_subprocess_shell(command: str) -> Tuple[str, str]:
|
|||||||
command
|
command
|
||||||
)
|
)
|
||||||
stdout, stderr = await _subprocess.communicate()
|
stdout, stderr = await _subprocess.communicate()
|
||||||
|
if stdout:
|
||||||
stdout = stdout.decode().strip()
|
stdout = stdout.decode().strip()
|
||||||
|
if stderr:
|
||||||
stderr = stderr.decode().strip()
|
stderr = stderr.decode().strip()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(
|
logging.error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user