Hacker News new | ask | show | jobs
by ludbb 3449 days ago

    Traceback (most recent call last):
      File "/root/routes/game.py", line 395, in get
        audio_filepath = audioSubmission['filepath']
    TypeError: 'NoneType' object is not subscriptable

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/local/lib/python3.6/site-packages/tornado/web.py", line 1467, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/root/routes/game.py", line 445, in get
        user=self.get_current_user().decode('utf-8'),
    AttributeError: 'NoneType' object has no attribute 'decode'
so many wrong things with this..
1 comments

debug mode is fully on!

We're working on the problem now. Everyone churned through audio faster than expected. New hams coming up.

Without seeing the actual code base, `audio_filepath = audioSubmission['filepath']` smells like a security vulnerability. Also calling `decode` on a user object seems wrong...
It's just UTF-8 decoding, not something dangerous.