Save lineparser even if there is no data.
This commit is contained in:
parent
7a1dfebc6a
commit
1c6578d409
@ -94,9 +94,6 @@ class LineConfigParser(collections.UserList):
|
|||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
"""Save the config file."""
|
"""Save the config file."""
|
||||||
if not self.data:
|
|
||||||
log.destroy.debug("No data to save.")
|
|
||||||
return
|
|
||||||
limit = -1 if self._limit is None else config.get(*self._limit)
|
limit = -1 if self._limit is None else config.get(*self._limit)
|
||||||
if limit == 0:
|
if limit == 0:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user