Skip to content

Conversation

EastonLee
Copy link

1: in bundle_local.py, the logic when checking if a line is empty or comment is wrong
2: in dev_server.py, when loading index.wsgi and importing its reference files, if IOError occurs, it will tell "Seems you don't have an index.wsgi" even when index.wsgi does exists, that's not rational.

1: in bundle_local.py, the logic when checking if a line is empty or comment is wrong
2: in dev_server.py, when loading index.wsgi and importing its reference files, if IOError occurs, it will tell "Seems you don't have an index.wsgi" even when index.wsgi does exists, that's not rational.
@@ -173,8 +174,8 @@ def main(options):

try:
index = imp.load_source('index', 'index.wsgi')
except IOError:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some IOError exception may be thrown during the import process, but that doesn't mean 'index.wsgi' doesn't exist.
directly print the traceback can help user figure out where the real bug is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants