From e913a9642b1cbf8b32eb79a476c1e51d6cfbeb38 Mon Sep 17 00:00:00 2001 From: Llloooggg Date: Wed, 22 Apr 2020 12:08:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BE=D1=82=D0=BB=D0=BE=D0=B2=20=D0=BF=D0=B0=D0=B4?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index aee5726..5006909 100644 --- a/__init__.py +++ b/__init__.py @@ -26,7 +26,7 @@ if path.exists('./professions_list.txt'): weightsList = {} if path.exists('./weights_list.txt'): -f = open('./weights_list.txt') + f = open('./weights_list.txt') for line in f.readlines(): question = line.split(':')[0] if question[-1:] == ' ': @@ -229,4 +229,8 @@ def main(): if __name__ == '__main__': - main() + try: + main() + exec Exeption: + driver.close() +