diff --git a/main.py b/main.py index 1cd7fbe..4c2dee1 100644 --- a/main.py +++ b/main.py @@ -44,7 +44,10 @@ try: user_IO.user_output(subject_get.return_average_subject) elif input_or_output == "exit": break - raise SystemError + with open(filepath, 'w') as file: + _list = [serializer.serialize(_subject) for _subject in subjects] + string = encryption.encrypt(password, str(_list)) + file.write(string) except Exception as e: print('ERROR' + str(e))