Closed vorpal-buildbot closed 5 years ago
500 error at /decks/
'Return to Nature'
Reported on decksite by logged_out
--------------------------------------------------------------------------------
Request Method: GET
Path: /decks/?
Cookies: {'_gat_gtag_UA_109131120_1': '1', '_ga': 'GA1.1.801048687.1561116443', '_gid': 'GA1.1.1206144201.1561116443'}
Endpoint: decks
View Args: {}
Person: logged_out
Referrer: https://test.pennydreadfulmagic.com/decks/
Request Data: {}
Host: test.pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 162.158.67.75, 162.158.78.228
Cf-Ray: 4ea5a3097e0e9f52-IAD
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
User-Agent: Mozilla/5.0 (compatible; CloudFlare-AlwaysOnline/1.0; +http://www.cloudflare.com/always-online) AppleWebKit/534.34
Accept: */*
Referer: https://test.pennydreadfulmagic.com/decks/
Cookie: _gat_gtag_UA_109131120_1=1; _ga=GA1.1.801048687.1561116443; _gid=GA1.1.1206144201.1561116443
Accept-Language: en,*
Cf-Connecting-Ip: 162.158.67.75
Cdn-Loop: cloudflare
X-Forwarded-Host: test.pennydreadfulmagic.com
X-Forwarded-Server: test.pennydreadfulmagic.com
Connection: Keep-Alive
KeyError 'Return to Nature' Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
try:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
.. versionchanged:: 0.7
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
Then you still have the original application object around and
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
and req.method == 'OPTIONS':
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value.with_traceback(tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
# request came with the OPTIONS method, reply automatically
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
"""Does the request dispatching. Matches the URL and returns the
File "./decksite/cache.py", line 79, in decorated_function
response = make_response(f(*args, **kwargs))
File "./decksite/main.py", line 51, in decks
return view.page()
File "./shared_web/base_view.py", line 21, in page
return template.render_name('page', self)
File "./shared_web/template.py", line 29, in render_name
return renderer.render_name(template, *context)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/renderer.py", line 378, in render_name
return self._render_string(template, *context, **kwargs)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/renderer.py", line 402, in _render_string
return self._render_final(render_func, *context, **kwargs)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/renderer.py", line 419, in _render_final
return render_func(engine, stack)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/renderer.py", line 400, in <lambda>
render_func = lambda engine, stack: engine.render(template, stack)
File "./shared_web/template.py", line 68, in render
return self.parsed_templates[template].render(self, context_stack)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/parsed.py", line 47, in render
parts = list(map(get_unicode, self._parse_tree))
File "/home/discord/.local/lib/python3.6/site-packages/pystache/parsed.py", line 46, in get_unicode
return node.render(engine, context)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/parser.py", line 134, in render
s = engine.fetch_string(context, self.key)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/renderengine.py", line 105, in fetch_string
val = self.resolve_context(context, name)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/renderer.py", line 317, in resolve_context
return context_get(stack, name)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/renderengine.py", line 19, in context_get
return stack.get(name)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/context.py", line 281, in get
result = self._get_simple(parts[0])
File "/home/discord/.local/lib/python3.6/site-packages/pystache/context.py", line 310, in _get_simple
result = _get_value(item, name)
File "/home/discord/.local/lib/python3.6/site-packages/pystache/context.py", line 73, in _get_value
return attr()
File "./shared_web/base_view.py", line 18, in content
return template.render(self)
File "./shared_web/template.py", line 32, in render
view.prepare()
File "./decksite/view.py", line 145, in prepare
self.prepare_decks()
File "./decksite/view.py", line 158, in prepare_decks
self.prepare_deck(d)
File "./decksite/view.py", line 203, in prepare_deck
d.decklist = str(d).replace('\n', '<br>')
File "./magic/models/deck.py", line 39, in __str__
self.sort()
File "./magic/models/deck.py", line 26, in sort
self.sideboard.sort(key=lambda x: oracle.deck_sort(x.card))
File "./magic/models/deck.py", line 26, in <lambda>
self.sideboard.sort(key=lambda x: oracle.deck_sort(x.card))
File "./magic/models/cardref.py", line 28, in card
self.__card = oracle.cards_by_name()[self.name]
Exception_hash: f968530ae20c0e86968907b1c45ff3825558dee6
Labels: decksite; KeyError
'Return to Nature'
Reported on decksite by logged_out
KeyError 'Return to Nature' Stack Trace:
Exception_hash: f968530ae20c0e86968907b1c45ff3825558dee6