Signed-off-by: Rob Browning <
r...@defaultvalue.org>
Tested-by: Rob Browning <
r...@defaultvalue.org>
---
lib/bup/client.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/bup/client.py b/lib/bup/client.py
index 9bda775c..e118faf9 100644
--- a/lib/bup/client.py
+++ b/lib/bup/client.py
@@ -327,9 +327,9 @@ class Client:
self.conn = self._transport.conn
self._available_commands = self._get_available_commands()
if self.path and (invalid := re.search(br'[\r\n]', self.path)):
- bad_c = path_msg(match.group())
- pm = path_msg(self.path)
- raise Exception(f'Invalid {bad_c} in remote path {pm(self.path)}')
+ bad_c = pm(invalid.group())
+ rem = pm(self.path)
+ raise Exception(f'Invalid {bad_c} in remote path {rem}')
if create:
self._require_command(b'init-dir')
self.conn.write(b'init-dir %s\n' % self.path)
--
2.47.3