From 94bc1c115f4293281d8e5b10d8ba1751189ccb02 Mon Sep 17 00:00:00 2001 From: Ali Parlakci Date: Thu, 9 Aug 2018 09:04:12 +0300 Subject: [PATCH] Minor edit in exception handling --- script.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/script.py b/script.py index 3578556..37d91ca 100644 --- a/script.py +++ b/script.py @@ -660,10 +660,7 @@ def main(): download(postFromLog(logDir)) sys.exit() - try: - POSTS = getPosts(prepareAttributes()) - except Exception as exception: - print(f"{exception.__class__.__name__}: {exception}") + POSTS = getPosts(prepareAttributes()) if POSTS is None: print("I could not find any posts in that URL")