mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-05 21:00:13 -06:00
Wrap one more BASE_URL usages with str()
In 59372aba33 a lazily evaluated BASE_URL tool was introduced.
I found 1 more case in which BASE_URL was not "collapsed into a
string" magically by `__add__`, causing an
`AttributeError: 'TenantBaseURL' object has no attribute 'decode'`
This commit is contained in:
@@ -38,7 +38,7 @@ def check_event_storage_properly_configured(app_configs, **kwargs):
|
||||
@register("bsmain")
|
||||
def check_base_url_is_url(app_configs, **kwargs):
|
||||
try:
|
||||
parts = urllib.parse.urlsplit(get_settings().BASE_URL)
|
||||
parts = urllib.parse.urlsplit(str(get_settings().BASE_URL))
|
||||
except ValueError as e:
|
||||
return [Warning(
|
||||
str(e),
|
||||
|
||||
Reference in New Issue
Block a user