Skip to content

Commit

Permalink
Merge pull request #7 from sovrin-foundation/rc-1.12.6.rc2
Browse files Browse the repository at this point in the history
[RC2-1.12.6] Fix exception type in update_package_cache
  • Loading branch information
WadeBarnes authored Aug 18, 2022
2 parents 441042e + 6bda5ec commit 7cf78dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion indy_node/__version__.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[1, 12, 6, "rc", "1"]
[1, 12, 6, "rc", "2"]
4 changes: 2 additions & 2 deletions indy_node/test/node_control_utils/test_node_control_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _run_shell_script(command, *args, **kwargs):
commands.append(command)

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

return ''

Expand Down Expand Up @@ -212,7 +212,7 @@ def _run_shell_script(command, *args, **kwargs):
commands.append(command)

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

return ''

Expand Down
2 changes: 1 addition & 1 deletion indy_node/utils/node_control_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def update_package_cache(cls):
cmd = compose_cmd(['apt', 'update'])
try:
cls.run_shell_script(cmd)
except ShellError as e:
except Exception as e:
# Currently two issues can stop this from working.
# 1) The Sovrin Repo key needs to be updated
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88
Expand Down

0 comments on commit 7cf78dc

Please sign in to comment.