clonebox 1.1.14__py3-none-any.whl → 1.1.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
clonebox/audit.py CHANGED
@@ -228,7 +228,11 @@ class AuditLogger:
228
228
 
229
229
  # Ensure log directory exists
230
230
  if self.enabled:
231
- self.log_path.parent.mkdir(parents=True, exist_ok=True)
231
+ try:
232
+ self.log_path.parent.mkdir(parents=True, exist_ok=True)
233
+ except (PermissionError, OSError):
234
+ # If we can't create log directory, disable audit logging
235
+ self.enabled = False
232
236
 
233
237
  def log(
234
238
  self,