do not let permissions on one ttbprc kill process

vilmibm 2019-08-26 22:20:44 +00:00
parent a8f956110a
commit 925b56bd20
1 changed files with 4 additions and 1 deletions

View File

@ -373,7 +373,10 @@ def publishing(username=config.USER):
ttbprc = SETTINGS ttbprc = SETTINGS
else: else:
try:
ttbprc = json.load(open(os.path.join("/home", username, ".ttbp", "config", "ttbprc"))) ttbprc = json.load(open(os.path.join("/home", username, ".ttbp", "config", "ttbprc")))
except IOError:
return False
return ttbprc.get("publishing") return ttbprc.get("publishing")