From f8d58bc5902d0f49492f573c2fbf1b13a6989255 Mon Sep 17 00:00:00 2001 From: jgostick Date: Wed, 24 Oct 2018 11:56:22 -0400 Subject: [PATCH] moving import of git inside try/except --- openpnm/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openpnm/__init__.py b/openpnm/__init__.py index 4a6f3276ea..ffe82ba9f0 100644 --- a/openpnm/__init__.py +++ b/openpnm/__init__.py @@ -51,13 +51,13 @@ +----------------+------------------------------------------------------------+ """ -import os -from pathlib import Path -from git import Repo -__version__ = '2.0.2' +__version__ = '2.0.3' try: + import os + from pathlib import Path + from git import Repo path = Path(os.path.realpath(__file__), '../../').resolve() repo = Repo(str(path)) if repo.active_branch.name != 'master':