chenwardT / lol_stats2

Website to perform match aggregation and analysis for Riot Games' League of Legends.
2 stars 0 forks source link

store_get_match error: 'NoneType' object has no attribute 'match_date' #22

Open chenwardT opened 8 years ago

chenwardT commented 8 years ago

The following occurred once during a long series of get_match_list calls (150k+ IDs) with max_matches set to 1:

[2015-11-30 17:46:39,569: ERROR/MainProcess] Task lol_stats2.celery.store_get_match[919765d9-e4c6-4a2f-902e-7be1aa0f49df] raised unexpected: AttributeError("'NoneType' object has no attribute 'match_date'",)                            
Traceback (most recent call last):                                                                                                                                                                                                         
  File "/home/chen/.virtualenvs/lol_stats2_dev/lib/python3.4/site-packages/celery/app/trace.py", line 240, in trace_task                                                                                                                   
    R = retval = fun(*args, **kwargs)                                                                                                                                                                                                      
  File "/home/chen/.virtualenvs/lol_stats2_dev/lib/python3.4/site-packages/celery/app/trace.py", line 438, in __protected_call__                                                                                                           
    return self.run(*args, **kwargs)                                                                                                                                                                                                       
  File "/home/chen/python-projects/lol_stats2/lol_stats2/lol_stats2/celery.py", line 305, in store_get_match                                                                                                                               
    logger.info('Stored match {} (create time: {})'.format(created, created.match_date()))                                                                                                                                                 
AttributeError: 'NoneType' object has no attribute 'match_date'