From 99c07d39ae7bcbb18a1c744060059ebe88efd3f5 Mon Sep 17 00:00:00 2001 From: Luis Fernandes Date: Wed, 7 Oct 2015 12:49:14 +0100 Subject: [PATCH] Export Fixtures with filters. --- frappe/utils/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/fixtures.py b/frappe/utils/fixtures.py index ec92732ece..35425e5d8c 100644 --- a/frappe/utils/fixtures.py +++ b/frappe/utils/fixtures.py @@ -51,7 +51,7 @@ def export_fixtures(): if isinstance(fixture, dict): filters = fixture.get("filters") fixture = fixture.get("doctype") or fixture.get("dt") - print "Exporting {0} {1} {2}".format(fixture, app, filters) + print "Exporting {0} {1} {2}".format(fixture, app, filters or "") if not os.path.exists(frappe.get_app_path(app, "fixtures")): os.mkdir(frappe.get_app_path(app, "fixtures"))