Skip to content

Commit 9f1f75c

Browse files
ntninjam3nu
authored andcommitted
Prevent exception while running BorgVersionJob with unexpected lines on stderr
The borg job logic expects the `profile_name` key to be unconditionally present in the params if any data is received on stderr. This causes the BorgVersionJob (which didn’t set this param) to fail if any unexpected output – such as LD_PRELOAD warnings – in generated while running `borg --version`. This in turn causes Vorta to silently (other than an unrelated looking exception in the console output) fall back to assuming borg 1.1.0 as the borg version.
1 parent 3268bf1 commit 9f1f75c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vorta/borg/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def prepare(cls):
2222
return ret
2323

2424
ret['cmd'] = ['borg', '--version']
25+
ret['profile_name'] = 'default'
2526
ret['ok'] = True
2627
return ret
2728

0 commit comments

Comments
 (0)