Closed bakert closed 6 years ago
'NoneType' object has no attribute 'find' Reported on decksite by logged_out``` -------------------------------------------------------------------------------- Request Method: POST Path: /add/? Cookies: {'__cfduid': 'd96e25b1bbee51f62e08553310213e6821539129199'} Endpoint: add_deck View Args: {} Person: logged_out Referrer: None Request Data: {'url': 'https://tappedout.net/mtg-decks/09-10-18-vcI-gobbos'} Host: pennydreadfulmagic.com Accept-Encoding: gzip Cf-Ipcountry: US X-Forwarded-For: 2600:3c01:0:0:f03c:91ff:fee4:537c, 172.68.132.49 Cf-Ray: 46756ae519e795f5-SJC X-Forwarded-Proto: https Cf-Visitor: {"scheme":"https"} User-Agent: python-requests/2.19.1 Accept: / Cookie: __cfduid=d96e25b1bbee51f62e08553310213e6821539129199 Content-Type: application/x-www-form-urlencoded Cf-Connecting-Ip: 2600:3c01:0:0:f03c:91ff:fee4:537c X-Forwarded-Host: pennydreadfulmagic.com X-Forwarded-Server: pennydreadfulmagic.com Connection: Keep-Alive Content-Length: 65 -------------------------------------------------------------------------------- AttributeError 'NoneType' object has no attribute 'find' Stack Trace: File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call return self.wsgi_app(environ, start_response) File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise raise value File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functionsrule.endpoint File "./decksite/cache.py", line 79, in decorated_function response = make_response(f(*args, **kwargs)) File "./decksite/main.py", line 177, in add_deck deck_id = decksite.scrapers.tappedout.scrape_url(url).id File "./decksite/scrapers/tappedout.py", line 90, in scrape_url raw_deck.update(parse_printable(raw_deck)) # type: ignore File "./decksite/scrapers/tappedout.py", line 107, in parse_printable user = infobox.find('td', string='User')
1b3d52e0