From 145c6a55c45ca804115e3aef99a8be797def4961 Mon Sep 17 00:00:00 2001 From: Lev Rusanov <30170278+JDM170@users.noreply.github.com> Date: Mon, 29 Aug 2022 10:34:23 +0700 Subject: [PATCH] Update main.py Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com> --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index fceb327..a68043b 100644 --- a/main.py +++ b/main.py @@ -35,9 +35,9 @@ def generate_md5(fn): def ask_input(message): result = input(message) - if not isfile(result): - ask_input(message) - return result + if isfile(result): + return result + ask_input(message) def main():