futuresushi

Untitled

Feb 13th, 2022
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. Environment:
  2.  
  3.  
  4. Request Method: POST
  5. Request URL: http://pokemondraftleague.online/replay_analyzer/
  6.  
  7. Django Version: 3.1.7
  8. Python Version: 3.6.13
  9. Installed Applications:
  10. ['django.contrib.admin',
  11. 'django.contrib.auth',
  12. 'django.contrib.contenttypes',
  13. 'django.contrib.sessions',
  14. 'django.contrib.messages',
  15. 'django.contrib.postgres',
  16. 'django.contrib.staticfiles',
  17. 'accounts.apps.AccountsConfig',
  18. 'api.apps.ApiConfig',
  19. 'app_api.apps.AppApiConfig',
  20. 'backgroundtasks.apps.BackgroundtasksConfig',
  21. 'draft_planner.apps.DraftPlannerConfig',
  22. 'league_configuration.apps.LeagueConfigurationConfig',
  23. 'leagues.apps.LeaguesConfig',
  24. 'main.apps.MainConfig',
  25. 'matches.apps.MatchesConfig',
  26. 'pokemon.apps.PokemonConfig',
  27. 'prior_seasons.apps.PriorSeasonsConfig',
  28. 'background_task',
  29. 'crispy_forms',
  30. 'django_bootstrap_breadcrumbs',
  31. 'rest_framework',
  32. 'multiselectfield',
  33. 'template_timings_panel',
  34. 'storages',
  35. 'timezone_field',
  36. 'widget_tweaks',
  37. 'admin_autoregister']
  38. Installed Middleware:
  39. ['django.middleware.security.SecurityMiddleware',
  40. 'django.contrib.sessions.middleware.SessionMiddleware',
  41. 'django.middleware.common.CommonMiddleware',
  42. 'django.middleware.csrf.CsrfViewMiddleware',
  43. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  44. 'django.contrib.messages.middleware.MessageMiddleware',
  45. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  46. 'whitenoise.middleware.WhiteNoiseMiddleware']
  47.  
  48.  
  49.  
  50. Traceback (most recent call last):
  51. File "/app/matches/parser/parser.py", line 122, in replayparse
  52. line,parsedlogfile,results=alternate_replay_parse_switch(line,parsedlogfile,results)
  53. File "/app/matches/parser/parser.py", line 70, in alternate_replay_parse_switch
  54. return func(argument,parsedlogfile,results)
  55. File "/app/matches/parser/parser.py", line 320, in damage_function
  56. damager=roster_search(otherteam,pokemon[cause],results)
  57. File "/app/matches/parser/parser.py", line 1228, in roster_search
  58. if mon['nickname'].find(pokemon)>-1:
  59.  
  60. During handling of the above exception (must be str, not NoneType), another exception occurred:
  61. File "/app/matches/parser/parser.py", line 126, in replayparse
  62. line,parsedlogfile,results=replay_parse_switch(line,parsedlogfile,results)
  63. File "/app/matches/parser/parser.py", line 37, in replay_parse_switch
  64. return func(argument,parsedlogfile,results)
  65. File "/app/matches/parser/parser.py", line 320, in damage_function
  66. damager=roster_search(otherteam,pokemon[cause],results)
  67. File "/app/matches/parser/parser.py", line 1228, in roster_search
  68. if mon['nickname'].find(pokemon)>-1:
  69.  
  70. During handling of the above exception (must be str, not NoneType), another exception occurred:
  71. File "/app/matches/parser/parser.py", line 1253, in alternativereplayparse
  72. line,parsedlogfile,results=alternate_replay_parse_switch(line,parsedlogfile,results)
  73. File "/app/matches/parser/parser.py", line 70, in alternate_replay_parse_switch
  74. return func(argument,parsedlogfile,results)
  75. File "/app/matches/parser/parser.py", line 446, in heal_function
  76. wisher['hphealed']+=healthhealed
  77.  
  78. During handling of the above exception (string indices must be integers), another exception occurred:
  79. File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
  80. response = get_response(request)
  81. File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
  82. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  83. File "/app/matches/views.py", line 9, in replay_analyzer
  84. results = replayparse(url)
  85. File "/app/matches/parser/parser.py", line 165, in replayparse
  86. results=alternativereplayparse(replay)
  87. File "/app/matches/parser/parser.py", line 1266, in alternativereplayparse
  88. line,parsedlogfile,results=replay_parse_switch(line,parsedlogfile,results)
  89. File "/app/matches/parser/parser.py", line 37, in replay_parse_switch
  90. return func(argument,parsedlogfile,results)
  91. File "/app/matches/parser/parser.py", line 320, in damage_function
  92. damager=roster_search(otherteam,pokemon[cause],results)
  93. File "/app/matches/parser/parser.py", line 1228, in roster_search
  94. if mon['nickname'].find(pokemon)>-1:
  95.  
  96. Exception Type: TypeError at /replay_analyzer/
  97. Exception Value: must be str, not NoneType
  98.  
Advertisement
Add Comment
Please, Sign In to add comment