Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed two errors: #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixed two errors: #123

wants to merge 1 commit into from

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