From cd39ae68b6700fc56d8e097c97a33766b3c48283 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 23 Aug 2018 09:51:53 -0500 Subject: [PATCH] r not w --- onionr/storagecounter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionr/storagecounter.py b/onionr/storagecounter.py index b2ccd0d1..024eb4f5 100644 --- a/onionr/storagecounter.py +++ b/onionr/storagecounter.py @@ -38,7 +38,7 @@ class StorageCounter: '''Return how much disk space we're using (according to record)''' retData = 0 try: - with open(self.dataFile, 'w') as dataFile: + with open(self.dataFile, 'r') as dataFile: retData = int(dataFile.read()) except FileNotFoundError: pass