1. x l
  2. django-articles

Commits

Josh VanderLinden  committed d82ab9e

Handling an ImportError when trying to build the django-articles package

  • Participants
  • Parent commits 8b63e4b
  • Branches default
  • Tags 2.1.0

Comments (0)

Files changed (1)

File articles/__init__.py

View file
  • Ignore whitespace
 __version__ = '2.1.0'
 
-import listeners
+try:
+    import listeners
+except ImportError:
+    # this happens when setup.py is grabbing __version__; nothing to worry
+    # about
+    pass
 
 """
 The Pygments reStructuredText directive