let's get the  exception on this line:
    ```except KeyError, x:```

then add a second error log line that echoes the exception and gives a stack trace