Fix not internal error on request files from not seeded sites

This commit is contained in:
shortcutme 2017-07-06 00:09:35 +02:00
parent 1d6168f457
commit 49735b7e55
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -409,7 +409,7 @@ class UiRequest(object):
if config.debug and file_path.split("/")[-1].startswith("all."):
# If debugging merge *.css to all.css and *.js to all.js
site = self.server.sites.get(address)
if site.settings["own"]:
if site and site.settings["own"]:
from Debug import DebugMedia
DebugMedia.merge(file_path)
if not address or address == ".":