1. illume
  2. newsletter

Commits

illume  committed 5da94d9

Looked at ValueError as well for when an import fails.

This is if it is run outside of a package.

  • Participants
  • Parent commits 5fdb430
  • Branches default

Comments (0)

Files changed (1)

File newsletter/newsletterapp/newsletterapp.py

View file
 import sys
 try:
     from .base import NewsletterSend, Newsletter
-except ImportError:
+except ValueError, ImportError:
     # a hack to put the newsletter package in the path.
     sys.path.append(os.path.join("..", ".."))
     from newsletter.base import NewsletterSend, Newsletter