Skip to content

Commit

Permalink
Fix crash when running ferrit.py directly
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmansson committed May 25, 2021
1 parent 3b3ce37 commit 367dc6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ferrit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

import requests
import urllib3
from pkg_resources import DistributionNotFound, RequirementParseError, get_distribution
from pkg_resources import get_distribution
from requests_futures.sessions import FuturesSession


urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

try:
__version__ = get_distribution(__name__).version
except (DistributionNotFound, RequirementParseError):
except Exception:
__version__ = None

GITARGS = ["git", "-c", "advice.detachedHead=false"]
Expand Down

0 comments on commit 367dc6d

Please sign in to comment.