Skip to content

v4.2.1

Choose a tag to compare

@Digital-Thought Digital-Thought released this 01 Feb 09:32
· 6 commits to master since this release

Added

  • Graceful directory creation failure handling in ApplicationPaths
    • New _safe_makedirs() helper wraps all os.makedirs calls with OSError handling
    • New path_creation_status dict tracks which paths were successfully created
    • New is_path_available(path_name) convenience method for downstream consumers
    • Applications continue with reduced functionality when system-level paths
      (e.g. C:\ProgramData, /var/log) are not writable, instead of crashing

Changed

  • ApplicationPaths now logs logging.warning() on directory creation failure
    instead of crashing (tmp, logging, usr_data) or printing to stdout (app_data)
  • purge_old_logs() returns early when log directory does not exist
  • initialise_logging() handles missing log directories gracefully and returns
    None when file logging is unavailable
  • SettingsReader checks directory existence before scheduling watchdog observer,
    preventing OSError when config directories are missing
  • LocalSecretStoresManager uses logging.warning() instead of print() when
    skipping the APP Local Secret Store
  • shutil.rmtree for temp directory cleanup is now wrapped in try/except

Fixed

  • Fix flaky dictionary attack resistance test that false-positived on short
    substrings (e.g. "key") appearing by chance in random 24-character secrets