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

Fix additional_dir serving #11

Merged
merged 1 commit into from Mar 8, 2016
Merged

Fix additional_dir serving #11

merged 1 commit into from Mar 8, 2016

Conversation

Thingee
Copy link
Contributor

@Thingee Thingee commented Mar 1, 2016

Removing undefined cases, and moving a referenced variable after being
defined. Was getting 500 errors on serving because of several issues fixed in this pull request.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 193, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 181, in execute
    application_iter = app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask_socketio/__init__.py", line 37, in __call__
    start_response)
  File "/usr/local/lib/python2.7/dist-packages/engineio/middleware.py", line 49, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1410, in handle_exception
    return handler(e)
  File "/usr/local/lib/python2.7/dist-packages/instant_rst/server.py", line 114, in server_error
    console.log(e)
NameError: global name 'console' is not defined

and then later

local variable 'additional_dir' referenced before assignment 

Removing undefined cases, and moving a referenced variable after being
defined.
@gu-fan
Copy link
Owner

gu-fan commented Mar 8, 2016

well... sorry..

gu-fan pushed a commit that referenced this pull request Mar 8, 2016
Fix additional_dir serving
@gu-fan gu-fan merged commit 490ede9 into gu-fan:master Mar 8, 2016
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.

None yet

2 participants