From 925b56bd2008711fcbe768e470461ea105ecb5fa Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 26 Aug 2019 22:20:44 +0000 Subject: [PATCH] do not let permissions on one ttbprc kill process --- ttbp/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ttbp/core.py b/ttbp/core.py index d35db94..5ecf1c2 100644 --- a/ttbp/core.py +++ b/ttbp/core.py @@ -373,7 +373,10 @@ def publishing(username=config.USER): ttbprc = SETTINGS else: - ttbprc = json.load(open(os.path.join("/home", username, ".ttbp", "config", "ttbprc"))) + try: + ttbprc = json.load(open(os.path.join("/home", username, ".ttbp", "config", "ttbprc"))) + except IOError: + return False return ttbprc.get("publishing")