[hot] fix global name args is not defined (#9326)

diff --git a/erpnext/patches/v8_0/create_domain_docs.py b/erpnext/patches/v8_0/create_domain_docs.py
index 1fa3b29..f04a7e6 100644
--- a/erpnext/patches/v8_0/create_domain_docs.py
+++ b/erpnext/patches/v8_0/create_domain_docs.py
@@ -36,6 +36,6 @@
 		if domain in checked_domains:
 			continue
 
-		row = domain_settings.append("active_domains", dict(domain=args.domain))
+		row = domain_settings.append("active_domains", dict(domain=domain))
 
 	domain_settings.save(ignore_permissions=True)
\ No newline at end of file