Skip to content

Commit 7cf78dc

Browse files
authored
Merge pull request #7 from sovrin-foundation/rc-1.12.6.rc2
[RC2-1.12.6] Fix exception type in update_package_cache
2 parents 441042e + 6bda5ec commit 7cf78dc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: indy_node/__version__.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[1, 12, 6, "rc", "1"]
1+
[1, 12, 6, "rc", "2"]

Diff for: indy_node/test/node_control_utils/test_node_control_util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def _run_shell_script(command, *args, **kwargs):
180180
commands.append(command)
181181

182182
if run_shell_script_counter == 1:
183-
raise ShellError(100, "apt update")
183+
raise Exception("Command 'apt update' returned non-zero exit status")
184184

185185
return ''
186186

@@ -212,7 +212,7 @@ def _run_shell_script(command, *args, **kwargs):
212212
commands.append(command)
213213

214214
if run_shell_script_counter == 1:
215-
raise ShellError(100, "apt update")
215+
raise Exception("Command 'apt update' returned non-zero exit status")
216216

217217
return ''
218218

Diff for: indy_node/utils/node_control_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def update_package_cache(cls):
361361
cmd = compose_cmd(['apt', 'update'])
362362
try:
363363
cls.run_shell_script(cmd)
364-
except ShellError as e:
364+
except Exception as e:
365365
# Currently two issues can stop this from working.
366366
# 1) The Sovrin Repo key needs to be updated
367367
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88

0 commit comments

Comments
 (0)