diff --git a/src/client.py b/src/client.py index 87adce3..c4fcb7c 100644 --- a/src/client.py +++ b/src/client.py @@ -494,7 +494,7 @@ def main(): "`config.py`?\n\n" + '\n'.join( '\t\t'.join(map(str, item)) for item in new_settings.items() - ), + ) + '\n\t\t\t', timeout=3 ) if answer: diff --git a/src/utilities.py b/src/utilities.py index cefdcf4..84f73ed 100644 --- a/src/utilities.py +++ b/src/utilities.py @@ -25,12 +25,5 @@ def timed_input(message: str = None, print() # Print end of line logging.info("Timeout!") signal.alarm(0) - if given_input: - logging.info(f"You typed: {given_input}") - return + return given_input - -if __name__ == '__main__': - root_logger = logging.getLogger() - root_logger.setLevel(logging.INFO) - timed_input("Inserisci qualcosa (entro 3 secondi)\t\t", timeout=3)