Skip to content

Commit

Permalink
Show dummy version number if distribution not found
Browse files Browse the repository at this point in the history
Mainly useful for running nosetests without installation
  • Loading branch information
ylogx committed Jun 27, 2015
1 parent c85b23f commit 77a72e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pulla/__init__.py
@@ -1,6 +1,9 @@
from pkg_resources import get_distribution
from pkg_resources import get_distribution, DistributionNotFound

from .pulla import Pulla
from .logger import Logger

__version__ = get_distribution('pulla').version
try:
__version__ = get_distribution('pulla').version
except DistributionNotFound:
__version__ = '0.0.0'

0 comments on commit 77a72e0

Please sign in to comment.