Skip to content

Commit bc0ade2

Browse files
lint: ruff
1 parent 633bbd4 commit bc0ade2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

juju/__init__.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Licensed under the Apache V2, see LICENCE file for details.
33
"""Python Library for Juju."""
44

5-
from backports.datetime_fromisoformat import MonkeyPatch
5+
try:
6+
from backports.datetime_fromisoformat import MonkeyPatch
67

7-
MonkeyPatch.patch_fromisoformat()
8+
MonkeyPatch.patch_fromisoformat()
9+
except ImportError:
10+
pass

0 commit comments

Comments
 (0)