Commits

Anonymous committed d82ab9e

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

  • Participants
  • Parent commits 8b63e4b
  • Tags 2.1.0

Comments (0)

Files changed (1)

File articles/__init__.py

 __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