event/main.py: compatibility change (4)