diff --git a/bink.py b/bink.py index 7fe19bd..70bf3ad 100755 --- a/bink.py +++ b/bink.py @@ -72,10 +72,11 @@ def generate_feed(before=None, count=200): posts.sort(key=lambda x: x[0], reverse=True) blogs = [] for time, user, path in posts[:count]: - # try: - with open(path, "r", encoding="UTF-8") as f: - body = f.read() - # except + try: + with open(path, "r", encoding="UTF-8") as f: + body = f.read() + except PermissionError: + continue obj = { "user": user, "time": time,