Skip to content

Commit

Permalink
Enhance error handling in transactional_update module
Browse files Browse the repository at this point in the history
  • Loading branch information
m-czernek committed Oct 31, 2024
1 parent 992906a commit b86c08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/transactional_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def call(function, *args, **kwargs):
return local.get("return", local)
else:
return local
except ValueError:
except (ValueError, AttributeError):
return {"result": False, "retcode": 1, "comment": ret_stdout}
finally:
# Check if reboot is needed
Expand Down

0 comments on commit b86c08c

Please sign in to comment.