aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-06-30 00:40:31 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-06-30 00:40:31 +0200
commit7bc568f0158b6cbc80ce31424a52ba6788318f72 (patch)
tree2b8fc284122540e8dbfb9e14fc35069e5133dbbf
parent4c5b30bd253dd0230afffb29c6daa6c338c2749c (diff)
downloadRWA.Support.SessionService-mr/add_web_app_host-fix-str-casting-issue.tar.gz
RWA.Support.SessionService-mr/add_web_app_host-fix-str-casting-issue.tar.bz2
RWA.Support.SessionService-mr/add_web_app_host-fix-str-casting-issue.zip
service.py: Add 'str()' to incomming 'string'mr/add_web_app_host-fix-str-casting-issue
-rwxr-xr-xrwa/support/sessionservice/service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rwa/support/sessionservice/service.py b/rwa/support/sessionservice/service.py
index 52bf627..8957708 100755
--- a/rwa/support/sessionservice/service.py
+++ b/rwa/support/sessionservice/service.py
@@ -114,7 +114,8 @@ class RWASupportSessionService(dbus.service.Object):
["https://example.org", "http://127.0.0.1:8000"]
"""
- user_settings.web_app_hosts.append(host)
+ # TODO: check for valid URL!
+ user_settings.web_app_hosts.append(str(host))
user_settings.save_settings()
return self._get_web_app_hosts()