2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 16:36:25 +00:00

Merge pull request #388 from saurabh6790/unicode_fix_for_domain_sync

[fix] check for unicode type while creating nginx conf
This commit is contained in:
Nabin Hait 2017-04-26 11:28:09 +05:30 committed by GitHub
commit e3fa8c4423

View File

@ -159,7 +159,7 @@ def get_sites_with_config(bench_path):
if dns_multitenant and site_config.get('domains'):
for domain in site_config.get('domains'):
# domain can be a string or a dict with 'domain', 'ssl_certificate', 'ssl_certificate_key'
if isinstance(domain, str):
if isinstance(domain, str) or isinstance(domain, unicode):
domain = { 'domain': domain }
domain['name'] = site