diff --git a/twoot.py b/twoot.py index 06d8861..61e572f 100755 --- a/twoot.py +++ b/twoot.py @@ -529,7 +529,10 @@ def main(argv): sql.commit() # Cleanup downloaded video files - shutil.rmtree('./output/' + twit_account) + try: + shutil.rmtree('./output/' + twit_account) + except FileNotFoundError: # The directory does not exist + pass if __name__ == "__main__": main(sys.argv)