Don't attempt to save if no data was read

This commit is contained in:
Florian Bruhin 2014-04-16 23:32:21 +02:00
parent 981ca7d18e
commit af94b9f212

View File

@ -70,6 +70,8 @@ class LineConfigParser:
def save(self):
"""Save the config file."""
if self.data is None:
return
import qutebrowser.config.config as config
limit = -1 if self._limit is None else config.config.get(*self._limit)
if limit == 0: