Mercurial > libervia-backend
comparison sat/plugins/plugin_misc_app_manager.py @ 3417:bfe9ebd253a7
plugin app manager: fixed `public_url` value check
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 14 Nov 2020 21:20:48 +0100 |
parents | 5d926c7b0d99 |
children | be6d91572633 |
comparison
equal
deleted
inserted
replaced
3416:d7cfb031e41f | 3417:bfe9ebd253a7 |
---|---|
158 f"invalid !sat_conf value ({config_data!r}), a list of 1 to 4 items is " | 158 f"invalid !sat_conf value ({config_data!r}), a list of 1 to 4 items is " |
159 "expected" | 159 "expected" |
160 ) | 160 ) |
161 | 161 |
162 value = self.host.memory.getConfig(section, name, default) | 162 value = self.host.memory.getConfig(section, name, default) |
163 if name == "public_url" and not value or not value.startswith('http'): | 163 if name == "public_url" and (not value or not value.startswith('http')): |
164 if not value: | 164 if not value: |
165 log.warning(_( | 165 log.warning(_( |
166 'No value found for "public_url", using "https://example.org" for ' | 166 'No value found for "public_url", using "https://example.org" for ' |
167 'now, please set the proper value in sat.conf')) | 167 'now, please set the proper value in sat.conf')) |
168 else: | 168 else: |