diff --git a/reddit2telegram/supplier.py b/reddit2telegram/supplier.py index 381d3bda..e2d29546 100644 --- a/reddit2telegram/supplier.py +++ b/reddit2telegram/supplier.py @@ -16,7 +16,7 @@ def submissions_safe(submissions): try: yield next(submissions) except StopIteration: - break + raise StopIteration except Exception as e: long_sleep(2.818281828 * 3.14159 / 2)