Exceptions added #19

Merged
lade043 merged 11 commits from exceptions into master 2019-08-02 18:58:52 +02:00
Showing only changes of commit 4fd2e1e278 - Show all commits
+12
View File
@@ -1,8 +1,20 @@
import subject
import user_IO
import serializer
import encryption
import os
subjects = []
filepath = "/data/user.grades"
try:
password = user_IO.password()
if os.path.isfile(filepath):
with open(filepath, 'r') as file:
string = encryption.decrypt(password, file.read())
serializer.deserialize(string)
while True:
user_input = user_IO.user_input()
input_or_output = user_input[0]