Skip to content

Commit

Permalink
FIX: Really tolerate
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Aug 9, 2023
1 parent 5a276bd commit c50ab2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sphinx/environment/__init__.py
Expand Up @@ -515,12 +515,16 @@ def get_outdated_files(self, config_changed: bool) -> tuple[set[str], set[str],
depmtime_dt = datetime.utcfromtimestamp(depmtime)
except ValueError: # e.g., year 53606865 is out of range
depmtime_dt = depmtime
try:
mtime_dt = datetime.utcfromtimestamp(mtime)
except ValueError:
mtime_dt = mtime
logger.debug(
'[build target] outdated %r '
'from dependency %r: %s -> %s',
docname,
deppath,
datetime.utcfromtimestamp(mtime),
mtime_dt,
depmtime_dt)
changed.add(docname)
break
Expand Down

0 comments on commit c50ab2f

Please sign in to comment.