Minor edit in exception handling

This commit is contained in:
Ali Parlakci
2018-08-09 09:04:12 +03:00
parent c19d8ad71b
commit 94bc1c115f

View File

@@ -660,10 +660,7 @@ def main():
download(postFromLog(logDir)) download(postFromLog(logDir))
sys.exit() sys.exit()
try: POSTS = getPosts(prepareAttributes())
POSTS = getPosts(prepareAttributes())
except Exception as exception:
print(f"{exception.__class__.__name__}: {exception}")
if POSTS is None: if POSTS is None:
print("I could not find any posts in that URL") print("I could not find any posts in that URL")