Skip to content

Commit

Permalink
Fix error when git not installed on user machine
Browse files Browse the repository at this point in the history
moving import of git inside try/except
  • Loading branch information
jgostick committed Oct 24, 2018
2 parents 74a10dd + f8d58bc commit 62a54de
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 62a54de

Please sign in to comment.