This commit is contained in:
Fabian Montero 2025-09-15 00:00:37 -06:00
commit 9f38ea87a6
Signed by: fabian
GPG key ID: 3EDA9AE3937CCDE3
7 changed files with 171 additions and 20 deletions

View file

@ -0,0 +1,29 @@
From c363931656938f9cc3354b8e2797fe9abac1b0e3 Mon Sep 17 00:00:00 2001
From: Alejandro Soto <alejandro@34project.org>
Date: Sun, 31 Aug 2025 13:30:45 -0600
Subject: [PATCH] Remove "env" arg from subprocess calls
---
snapborg/borg.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/snapborg/borg.py b/snapborg/borg.py
index 89a3d84..b74ddf7 100644
--- a/snapborg/borg.py
+++ b/snapborg/borg.py
@@ -173,11 +173,10 @@ def launch_borg(args, password=None, print_output=False, dryrun=False, cwd=None)
# TODO: parse output from JSON log lines
try:
if print_output:
- subprocess.run(cmd, env=env, check=True, cwd=cwd)
+ subprocess.run(cmd, check=True, cwd=cwd)
else:
subprocess.check_output(cmd,
stderr=subprocess.STDOUT,
- env=env,
cwd=cwd)
except CalledProcessError as e:
if e.returncode == 1:
--
2.49.0