Internal Server Error after bench update: NameError: global name 'elf' is not defined

Please read the logs:

[ERROR] 2017-04-25 21:12:31,283 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py:
Site: site1.local
Exception in Enqueue Events for Site site1.local
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 63, in enqueue_events_for_site
if is_scheduler_disabled():
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 207, in is_scheduler_disabled
return not frappe.utils.cint(frappe.db.get_single_value(“System Settings”, “enable_scheduler”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 554, in get_single_value
tabSingles where doctype=%s and field=%s""", (doctype, fieldname))
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 107, in sql
self.connect()
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 53, in connect
use_unicode=True, charset=‘utf8mb4’, read_default_file="/etc/mysql/my.cnf")
NameError: global name ‘elf’ is not defined

Not able to replicate this. Did you have local changes (?)