def get_traceback():
	exc_type, exc_value, exc_tb = sys.exc_info()
	trace_list = traceback.format_exception(exc_type, exc_value, exc_tb)
	body = "".join(cstr(t) for t in trace_list)

	if frappe.logger:
		frappe.logger.error('Db:'+(frappe.db and frappe.db.cur_db_name or '') \
			+ ' - ' + body)

	return body
Patch ``admin.packaging._native_package_type`` to return a fixed value.
dataset/ETHPy150Open frappe/frappe/frappe/utils/__init__.py/get_traceback--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/admin/test/test_packaging.py/DockerBuildOptionsTests.setUp