Skip to content

Commit

Permalink
maint: fix: W0707(raise-missing-from):pyanaconda/ui/webui/__init__.py…
Browse files Browse the repository at this point in the history
…:168,12
  • Loading branch information
KKoukiou committed Feb 26, 2024
1 parent 0885d3e commit 788ec10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyanaconda/ui/webui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def _watch_webui_on_live(self):
try:
with open(self._viewer_pid_file, "tr") as f:
pid = int(f.readline().strip())
except ValueError:
raise ValueError("Anaconda can't obtain pid of the web UI viewer application")
except ValueError as e:
raise ValueError("Anaconda can't obtain pid of the web UI viewer application") from e

if pid < 0:
raise ValueError("Anaconda web UI viewer pid file seems to be broken")
Expand Down

0 comments on commit 788ec10

Please sign in to comment.