Catch the right exception for automatic log file creation
[imap-fix-internaldate] / src / fix_imap_internaldate.py
index 39b937a..9f85e44 100644 (file)
@@ -74,7 +74,7 @@ def load_configuration():
             config.getint('basic_settings', 'tolerance_mins')
             config.getboolean('basic_settings', 'skip_shared_folders')
             config.getboolean('basic_settings', 'fallback_to_date_header')
-    except configparser.NoOptionError:
+    except configparser.NoSectionError:
         success = []
     except ValueError:
         success = []