From f86391f83920820bb9206c4987c305f43c42b7de Mon Sep 17 00:00:00 2001 From: Dmytro Makovey Date: Tue, 19 Sep 2017 08:27:19 -0700 Subject: [PATCH] be smarted about destination field --- admin/manage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/manage.py b/admin/manage.py index 9ac3079a..0ba3501f 100644 --- a/admin/manage.py +++ b/admin/manage.py @@ -126,7 +126,10 @@ def config_update(verbose=False, delete_objects=False): email=email ) else: - alias.destination = destination.split(',') + if type(destination) == type(""): + alias.destination = destination.split(',') + else: + alias.destination = destination db.session.add(alias) if delete_objects: