diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2023-08-03 00:05:35 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-08-03 10:59:53 +0200 |
commit | 2c77347d56edf36c2e8d16338c7e9e348fc44c24 (patch) | |
tree | 11ae88c4e16506f164d3cd39b4e4dd7699b2e7f1 /freestyle_hid/_exceptions.py | |
parent | Reformat to pass pre-commit checks. (diff) | |
download | freestyle-hid-2c77347d56edf36c2e8d16338c7e9e348fc44c24.tar freestyle-hid-2c77347d56edf36c2e8d16338c7e9e348fc44c24.tar.gz freestyle-hid-2c77347d56edf36c2e8d16338c7e9e348fc44c24.tar.bz2 freestyle-hid-2c77347d56edf36c2e8d16338c7e9e348fc44c24.tar.lz freestyle-hid-2c77347d56edf36c2e8d16338c7e9e348fc44c24.tar.xz freestyle-hid-2c77347d56edf36c2e8d16338c7e9e348fc44c24.tar.zst freestyle-hid-2c77347d56edf36c2e8d16338c7e9e348fc44c24.zip |
Diffstat (limited to '')
-rw-r--r-- | freestyle_hid/_exceptions.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/freestyle_hid/_exceptions.py b/freestyle_hid/_exceptions.py index 38a822d..2b803f8 100644 --- a/freestyle_hid/_exceptions.py +++ b/freestyle_hid/_exceptions.py @@ -16,3 +16,14 @@ class ChecksumError(Exception): class CommandError(Exception): """Errors related to the command stream.""" + + +class MissingFreeStyleKeys(Exception): + """The freestyle-hid-keys package is missing.""" + + def __init__(self): + super().__init__( + "The freestyle-hid-keys package is missing, please install it from PyPi." + " You can install freestyle-hid[encryption] to select the encryption keys" + " package as an extra dependency." + ) |