Skip to content

Gracefully handle mtime read exception from cache#14933

Merged
AUTOMATIC1111 merged 1 commit intodevfrom
fix/graceful-mtime-hash-cache-exception
Feb 17, 2024
Merged

Gracefully handle mtime read exception from cache#14933
AUTOMATIC1111 merged 1 commit intodevfrom
fix/graceful-mtime-hash-cache-exception

Conversation

@catboxanon
Copy link
Copy Markdown
Collaborator

@catboxanon catboxanon commented Feb 15, 2024

Description

When a file's mtime is attempted to be read from the cache, but the resultant file does not actually exist (in the case of a symlink), currently this causes the entire Checkpoints/LoRA/etc UI to be forced into Gradio's error state. This fixes that by handling the exception here.

Checklist:

@AUTOMATIC1111 AUTOMATIC1111 merged commit ce57a6c into dev Feb 17, 2024
@AUTOMATIC1111 AUTOMATIC1111 deleted the fix/graceful-mtime-hash-cache-exception branch February 17, 2024 05:56
@w-e-w w-e-w mentioned this pull request Feb 17, 2024
@pawel665j pawel665j mentioned this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants