Skip to content

Commit

Permalink
changed custom error name in version_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilian Soltermann committed Nov 23, 2023
1 parent 52bd9f9 commit 3f6b40c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/version_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import subprocess

class OPNSenseConfigUsageError(Exception):
class OPNSenseVersionUsageError(Exception):
"""
Error Class to be raised in improper module usage
"""
Expand All @@ -25,6 +25,6 @@ def get_opnsense_version() -> str:
).strip()

except subprocess.CalledProcessError as exc:
raise OPNSenseConfigUsageError(
raise OPNSenseVersionUsageError(
f"There was an error getting the version {exc}"
) from subprocess.CalledProcessError

0 comments on commit 3f6b40c

Please sign in to comment.