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

Problem #28

Open
cwchristerw opened this issue Dec 31, 2018 · 0 comments
Open

Problem #28

cwchristerw opened this issue Dec 31, 2018 · 0 comments

Comments

@cwchristerw
Copy link

cwchristerw commented Dec 31, 2018

ERROR

[2018-12-31 05:10:15,784] ERROR in app: Exception on /sendGraph [POST]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/src/hyperboria-map/web/web.py", line 37, in page_sendGraph
    ret = insert_graph_data(ip=get_ip(), config=app.config, data=data, mail=mail, version=version)
  File "/src/hyperboria-map/web/graphData.py", line 17, in insert_graph_data
    with open(config['LOG'], 'a') as f:
KeyError: 'LOG'

Original
web/graphData.py

    with open(config['LOG'], 'a') as f:
        f.write(log + '\n')

Temporary Fix
web/graphData.py

    #with open(config['LOG'], 'a') as f:
        #f.write(log + '\n')
@cwchristerw cwchristerw changed the title Promlem Problem Jul 18, 2022
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

No branches or pull requests

1 participant