Distributed and decentralized pi calculation

update

Changed files
+9 -9
src
client
+4 -1
.gitignore
··· 161 161 162 162 # Server 163 163 picalc/ 164 - ver.txt 164 + ver.txt 165 + 166 + # Client 167 + pi.txt
+5 -8
src/client/client.py
··· 73 73 precision += 5 74 74 time.sleep(5) 75 75 except: 76 - try: 77 - print("Saving your latest Pi to Pi.txt and exiting...") 78 - with open("pi.txt", "w") as f: 79 - f.write(str(pi_val)) 80 - sys.exit() 81 - except: 82 - print("Unable to save to pi.txt. This could be because pi_val wasn't defined yet. Exiting..") 83 - sys.exit() 76 + print("\n") 77 + print("Saving your latest Pi to Pi.txt and exiting...") 78 + with open("pi.txt", "w") as f: 79 + f.write(str(pi_val)) 80 + sys.exit()