diff --git a/MastodonFeedHTML/Example.Config.py b/MastodonFeedHTML/Example.Config.py index 9076d3b..873d509 100644 --- a/MastodonFeedHTML/Example.Config.py +++ b/MastodonFeedHTML/Example.Config.py @@ -35,6 +35,9 @@ SpacesInFiles = True #CensorLogs = True ### --------------- ### +# Max times to retry in case of an HTML error, before giving up. +MaxTryCount = 5 + # Other advanced settings. AppName = "bottocto-MastodonFeedHTML" DbFile = "Database.txt" diff --git a/MastodonFeedHTML/Start.MastodonFeedHTML b/MastodonFeedHTML/Start.MastodonFeedHTML index 00bb1c3..f8224bb 100755 --- a/MastodonFeedHTML/Start.MastodonFeedHTML +++ b/MastodonFeedHTML/Start.MastodonFeedHTML @@ -1,3 +1,5 @@ #!/bin/sh cd "$( dirname "$( realpath "$0" )" )" -./MastodonFeedHTML.py +export PYTHONPATH=. +python3.9 -u ./MastodonFeedHTML.py | tee -a Log.txt +sleep 30