Skip to content

Commit

Permalink
moving import of git inside try/except
Browse files Browse the repository at this point in the history
  • Loading branch information
jgostick committed Oct 24, 2018
1 parent 74a10dd commit f8d58bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openpnm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit f8d58bc

Please sign in to comment.