Log exceptions.
This commit is contained in:
parent
c70ed692e4
commit
7af94add96
|
@ -30,6 +30,7 @@ def listen_inbox() -> None:
|
|||
|
||||
|
||||
def main() -> None:
|
||||
try:
|
||||
print(f"Starting Daily Releases Bot v{__version__}")
|
||||
mode = CONFIG["main"]["mode"]
|
||||
logger.info("Mode is %s", mode)
|
||||
|
@ -40,6 +41,9 @@ def main() -> None:
|
|||
generate(post=True, pm_recipients=CONFIG["reddit"]["notify_users"].split(","))
|
||||
if mode == "reply":
|
||||
listen_inbox()
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
raise e
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Reference in a new issue