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.
2 parents 70a6a0a + 26a2c30 commit a895709Copy full SHA for a895709
python_utils/__about__.py
@@ -7,4 +7,4 @@
7
)
8
__url__: str = 'https://github.com/WoLpH/python-utils'
9
# Omit type info due to automatic versioning script
10
-__version__ = '3.8.1'
+__version__ = '3.8.2'
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