Update base.py

Bug fix, that crashes celery monitoring.