Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Do not crash with stack trace on expectable error #647

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

ferdinandjarisch
Copy link
Contributor

No description provided.

p = subprocess.run(["ip", "-j", "address", "show"], capture_output=True, check=True)
try:
p = subprocess.run(["ip", "-j", "address", "show"], capture_output=True, check=True)
except FileNotFoundError as e:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exception type means, that the ip tool is not available, right? I would state this in the error message as such.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay, never mind. This should be included in {e}.

@rumpelsepp rumpelsepp added the bug Something isn't working label Dec 11, 2024
@rumpelsepp rumpelsepp added this to the gallia 2.0 milestone Dec 11, 2024
@rumpelsepp rumpelsepp merged commit 4df77d8 into master Dec 11, 2024
12 checks passed
@rumpelsepp rumpelsepp deleted the ip branch December 11, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants