diff --git a/juju/__init__.py b/juju/__init__.py index 742d5ace..15a0b1c6 100644 --- a/juju/__init__.py +++ b/juju/__init__.py @@ -2,6 +2,9 @@ # Licensed under the Apache V2, see LICENCE file for details. """Python Library for Juju.""" -from backports.datetime_fromisoformat import MonkeyPatch +try: + from backports.datetime_fromisoformat import MonkeyPatch -MonkeyPatch.patch_fromisoformat() + MonkeyPatch.patch_fromisoformat() +except ImportError: + pass