Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Environment:
- Request Method: POST
- Request URL: http://pokemondraftleague.online/replay_analyzer/
- Django Version: 3.1.7
- Python Version: 3.6.13
- Installed Applications:
- ['django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.postgres',
- 'django.contrib.staticfiles',
- 'accounts.apps.AccountsConfig',
- 'api.apps.ApiConfig',
- 'app_api.apps.AppApiConfig',
- 'backgroundtasks.apps.BackgroundtasksConfig',
- 'draft_planner.apps.DraftPlannerConfig',
- 'league_configuration.apps.LeagueConfigurationConfig',
- 'leagues.apps.LeaguesConfig',
- 'main.apps.MainConfig',
- 'matches.apps.MatchesConfig',
- 'pokemon.apps.PokemonConfig',
- 'prior_seasons.apps.PriorSeasonsConfig',
- 'background_task',
- 'crispy_forms',
- 'django_bootstrap_breadcrumbs',
- 'rest_framework',
- 'multiselectfield',
- 'template_timings_panel',
- 'storages',
- 'timezone_field',
- 'widget_tweaks',
- 'admin_autoregister']
- Installed Middleware:
- ['django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- 'whitenoise.middleware.WhiteNoiseMiddleware']
- Traceback (most recent call last):
- File "/app/matches/parser/parser.py", line 122, in replayparse
- line,parsedlogfile,results=alternate_replay_parse_switch(line,parsedlogfile,results)
- File "/app/matches/parser/parser.py", line 70, in alternate_replay_parse_switch
- return func(argument,parsedlogfile,results)
- File "/app/matches/parser/parser.py", line 320, in damage_function
- damager=roster_search(otherteam,pokemon[cause],results)
- File "/app/matches/parser/parser.py", line 1228, in roster_search
- if mon['nickname'].find(pokemon)>-1:
- During handling of the above exception (must be str, not NoneType), another exception occurred:
- File "/app/matches/parser/parser.py", line 126, in replayparse
- line,parsedlogfile,results=replay_parse_switch(line,parsedlogfile,results)
- File "/app/matches/parser/parser.py", line 37, in replay_parse_switch
- return func(argument,parsedlogfile,results)
- File "/app/matches/parser/parser.py", line 320, in damage_function
- damager=roster_search(otherteam,pokemon[cause],results)
- File "/app/matches/parser/parser.py", line 1228, in roster_search
- if mon['nickname'].find(pokemon)>-1:
- During handling of the above exception (must be str, not NoneType), another exception occurred:
- File "/app/matches/parser/parser.py", line 1253, in alternativereplayparse
- line,parsedlogfile,results=alternate_replay_parse_switch(line,parsedlogfile,results)
- File "/app/matches/parser/parser.py", line 70, in alternate_replay_parse_switch
- return func(argument,parsedlogfile,results)
- File "/app/matches/parser/parser.py", line 446, in heal_function
- wisher['hphealed']+=healthhealed
- During handling of the above exception (string indices must be integers), another exception occurred:
- File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
- response = get_response(request)
- File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/app/matches/views.py", line 9, in replay_analyzer
- results = replayparse(url)
- File "/app/matches/parser/parser.py", line 165, in replayparse
- results=alternativereplayparse(replay)
- File "/app/matches/parser/parser.py", line 1266, in alternativereplayparse
- line,parsedlogfile,results=replay_parse_switch(line,parsedlogfile,results)
- File "/app/matches/parser/parser.py", line 37, in replay_parse_switch
- return func(argument,parsedlogfile,results)
- File "/app/matches/parser/parser.py", line 320, in damage_function
- damager=roster_search(otherteam,pokemon[cause],results)
- File "/app/matches/parser/parser.py", line 1228, in roster_search
- if mon['nickname'].find(pokemon)>-1:
- Exception Type: TypeError at /replay_analyzer/
- Exception Value: must be str, not NoneType
Advertisement
Add Comment
Please, Sign In to add comment