Commits

illume committed eda3973

fix import error recovery in newsletterapp

Comments (0)

Files changed (2)

newsletter/newsletterapp/newsletterapp.py

 import sys
 try:
     from .base import NewsletterSend, Newsletter
-except ValueError:
+except ImportError:
     # a hack to put the newsletter package in the path.
     sys.path.append(os.path.join("..", ".."))
     from newsletter.base import NewsletterSend, Newsletter
                  'newsletter.tests', 
                  'newsletter.base', 
                 ],
+    'scripts': ['scripts/newsletterapp'],
 }