frappe@ubuntu:~/frappe-bench$ bench clear-cache
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 94, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py", line 41, in clear_cache
frappe.clear_cache()
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 510, in clear_cache
frappe.sessions.clear_cache()
File "/home/frappe/frappe-bench/apps/frappe/frappe/sessions.py", line 50, in clear_cache
clear_notifications(user)
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/notifications.py", line 163, in clear_notifications
config = get_notification_config()
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/notifications.py", line 220, in get_notification_config
return frappe.cache().get_value("notification_config", _get)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 72, in get_value
val = generator()
File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/notifications.py", line 214, in _get
nc = frappe.get_attr(notification_config)()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/startup/notifications.py", line 77, in get_notification_config
fields= ["name"], filters = {"name": ("not in", doctype), 'is_submittable': 1}):
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1177, in get_all
return get_list(doctype, *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1150, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 88, in execute
result = self.build_and_run()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 100, in build_and_run
args = self.prepare_args()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 119, in prepare_args
self.build_conditions()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 279, in build_conditions
self.build_filter_conditions(self.filters, self.conditions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 300, in build_filter_conditions
conditions.append(self.prepare_filter_condition(f))
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 330, in prepare_filter_condition
value = '("{0}")'.format('", "'.join(value))
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/db_query.py", line 329, in <genexpr>
value = (frappe.db.escape((v or '').strip(), percent=False) for v in values)
File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 904, in escape
s = text_type(pymysql.escape_string(s), "utf-8").replace("`", "\\`")
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/pymysql/converters.py", line 73, in _escape_unicode
return value.translate(_escape_table)
TypeError: a bytes-like object is required, not 'list'