diff --git a/onionshare/settings.py b/onionshare/settings.py index 18e7dd26..408c8bdc 100644 --- a/onionshare/settings.py +++ b/onionshare/settings.py @@ -18,10 +18,13 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ -import platform, os, json +import json +import os +import platform from . import strings, common + class Settings(object): """ This class stores all of the settings for OnionShare, specifically for how @@ -95,7 +98,7 @@ class Settings(object): try: common.log('Settings', 'load', 'Trying to load {}'.format(self.filename)) with open(self.filename, 'r') as f: - self._settings = json.loads(f.read()) + self._settings = json.load(f) self.fill_in_defaults() except: pass