Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KurosawaAngel committed Jan 21, 2025
1 parent 5d12d44 commit bf67563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiogram_dialog/context/media_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _get_file_mtime(self, path: Optional[str]) -> Optional[float]:
if not path:
return None
p = Path(path)
if p.exists():
if not p.exists():
return None
return Path(path).stat().st_mtime

Expand Down

0 comments on commit bf67563

Please sign in to comment.