diff --git a/user_interface.py b/user_interface.py index ba286ff..106e9ed 100755 --- a/user_interface.py +++ b/user_interface.py @@ -15,9 +15,8 @@ try: import readline - readline_available = True except ImportError: - readline_available = False + readline = None COMMANDS = { 'blacklist': 'Temporarily blacklists a user. Use config for permanent blacklisting. Usage: blacklist USERNAME', @@ -67,7 +66,7 @@ def main(self) -> None: self.event_handler.join() return - if readline_available: + if readline: completer = Autocompleter(list(COMMANDS.keys())) readline.set_completer(completer.complete) readline.parse_and_bind('tab: complete')