Skip to content

Commit

Permalink
Add debug logging of masked exception
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Jul 23, 2024
1 parent cbeb318 commit 81e9b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uaclient/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ def update_sources_list(sources_list_path: str):
with lock:
cache.update(fetch_progress, sources_list, 0)
# No apt_pkg.Error on Xenial
except getattr(apt_pkg, "Error", ()):
except getattr(apt_pkg, "Error", ()) as e:
LOG.debug(str(e))
raise exceptions.APTProcessConflictError()
except SystemError as e:
raise exceptions.APTUpdateFailed(detail=str(e))
Expand Down

0 comments on commit 81e9b90

Please sign in to comment.