Get loading status based on property

This commit is contained in:
shortcutme 2018-02-08 18:06:19 +01:00
parent 23be1d18a4
commit b6a401d697
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -165,7 +165,7 @@ class SiteManager(object):
# Lazy load sites
def list(self):
if self.sites is None: # Not loaded yet
if not self.loaded: # Not loaded yet
self.log.debug("Sites not loaded yet...")
self.load(startup=True)
return self.sites