mirror of
https://github.com/tildeclub/ttbp.git
synced 2026-06-22 04:09:25 +00:00
there was a major bug that caused users who opted not to publish to
crash during version checking. the version checker was trying to update files associated with published blogs, and crashing due to trying to read null paths. this fix checks to see if the user has opted to publish *before* running those updates.
This commit is contained in:
@@ -382,7 +382,9 @@ def www_neighbors():
|
||||
|
||||
userRC = json.load(open(os.path.join("/home", user, ".ttbp", "config", "ttbprc")))
|
||||
|
||||
url = LIVE+user+"/"+userRC["publish dir"]
|
||||
url = ""
|
||||
if userRC["publish dir"]:
|
||||
url = LIVE+user+"/"+userRC["publish dir"]
|
||||
|
||||
lastfile = ""
|
||||
files = os.listdir(os.path.join("/home", user, ".ttbp", "entries"))
|
||||
|
||||
Reference in New Issue
Block a user