Update handler.py

Oops, forgotten bug!