diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-03-22 13:02:46 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-03-22 13:30:41 +0100 |
| commit | 175d6dbb992696e5b8db96ede33de5371d286f2d (patch) | |
| tree | 6d39afd9c92aaf84bcaed64a3c0d2baeb135af47 /wrappers/python/eduvpn_common/event.py | |
| parent | 45690d23268493c7b0436f63d56cf28434e546fe (diff) | |
Python: Format and fix linting errors
Diffstat (limited to 'wrappers/python/eduvpn_common/event.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/event.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/wrappers/python/eduvpn_common/event.py b/wrappers/python/eduvpn_common/event.py index efe3310..2eb528a 100644 --- a/wrappers/python/eduvpn_common/event.py +++ b/wrappers/python/eduvpn_common/event.py @@ -1,4 +1,3 @@ -from enum import IntEnum from typing import Any, Callable, Dict, List, Tuple from eduvpn_common.state import State, StateType @@ -41,7 +40,7 @@ class EventHandler(object): try: # Get the method method = getattr(cls, method_name) - except Exception as e: + except Exception: # Unable to get a value, go to the next continue @@ -81,9 +80,7 @@ class EventHandler(object): self.handlers[(state, state_type)] = [] self.handlers[(state, state_type)].append(func) - def run_state( - self, state: State, other_state: State, state_type: StateType, data: str - ) -> bool: + def run_state(self, state: State, other_state: State, state_type: StateType, data: str) -> bool: """The function that runs the callback for a specific event :param state: State: The state of the event :param other_state: State: The other state of the event |
