diff --git a/Changelog.rst b/Changelog.rst index f8bdfaa..53a9797 100644 --- a/Changelog.rst +++ b/Changelog.rst @@ -17,6 +17,9 @@ Changes Bug Fixes --------- +* Don't fail if no dry-run setting exists in offlineimap.conf + (introduced in 6.5.3) + OfflineIMAP v6.5.3 (2012-04-02) =============================== diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py index 4bf4423..eea929d 100644 --- a/offlineimap/ui/UIBase.py +++ b/offlineimap/ui/UIBase.py @@ -49,7 +49,7 @@ class UIBase(object): def __init__(self, config, loglevel = logging.INFO): self.config = config # Is this a 'dryrun'? - self.dryrun = config.getboolean('general', 'dry-run') + self.dryrun = config.getdefaultboolean('general', 'dry-run', False) self.debuglist = [] """list of debugtypes we are supposed to log""" self.debugmessages = {}