From c32baff2c620f0973b21c5f90937543c6ff0a865 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Sun, 16 Dec 2018 16:15:37 -0500 Subject: [PATCH] stdin expecting bytes instead of str --- pifpaf/drivers/qdrouterd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pifpaf/drivers/qdrouterd.py b/pifpaf/drivers/qdrouterd.py index d4f9506..d973d3c 100644 --- a/pifpaf/drivers/qdrouterd.py +++ b/pifpaf/drivers/qdrouterd.py @@ -72,7 +72,7 @@ def get_options(cls): def saslpasswd2(self, username, password, sasl_db): self._exec(["saslpasswd2", "-c", "-p", "-f", - sasl_db, username], stdin=password) + sasl_db, username], stdin=password.encode()) def _setUp(self): super(QdrouterdDriver, self)._setUp()