fix: handleling condition if default company doesn't exist
diff --git a/erpnext/regional/report/irs_1099/irs_1099.py b/erpnext/regional/report/irs_1099/irs_1099.py
index a06efc8..d3509e5 100644
--- a/erpnext/regional/report/irs_1099/irs_1099.py
+++ b/erpnext/regional/report/irs_1099/irs_1099.py
@@ -16,14 +16,15 @@
 
 def execute(filters=None):
 	filters = filters if isinstance(filters, _dict) else _dict(filters)
-	company = frappe.db.get_default("company")
+
 	if not filters:
 		filters.setdefault('fiscal_year', get_fiscal_year(nowdate())[0])
-		filters.setdefault('company', company)
+		filters.setdefault('company', frappe.db.get_default("company"))
 
-	region = frappe.db.get_value("Company", fieldname = ["country"], filters = { "name": company })
+	region = frappe.db.get_value("Company", fieldname = ["country"], filters = { "name": filters.company })
 	if region != 'United States':
 		return [],[]
+
 	data = []
 	columns = get_columns()
 	data = frappe.db.sql("""