Minor edit in exception handling
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user