We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fromtimestamp
1 parent 5ba8c2e commit 7f82d15Copy full SHA for 7f82d15
python_utils/time.py
@@ -130,7 +130,7 @@ def format_time(
130
131
try: # pragma: no cover
132
dt = datetime.datetime.fromtimestamp(seconds)
133
- except ValueError: # pragma: no cover
+ except (ValueError, OSError): # pragma: no cover
134
dt = datetime.datetime.max
135
return str(dt)
136
elif isinstance(timestamp, datetime.date):
0 commit comments