Skip to content

Commit

Permalink
Added trailing WS
Browse files Browse the repository at this point in the history
  • Loading branch information
HadManySons committed Mar 9, 2024
1 parent d8baf4f commit f634f99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AFILinkerBot/AFILinkerBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
def checkForReplies(comment_list, rAirForceComments):
for comment in comment_list:
if rAirForceComments.id in comment.body:
print_and_log("Already processed comment: " + permlink + ", skipping")
return True
print_and_log("Already processed comment: " + permlink + ", skipping")
return True
return False

#Try to login or sleep/wait until logged in, or exit if user/pass wrong
Expand Down
6 changes: 4 additions & 2 deletions AFILinkerBot/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
import logging
from logging.handlers import RotatingFileHandler

"""Some helping functions for the main script"""

LOG_TIME_FORMAT = "%Y/%m/%d %H:%M:%S "

logger = logging.getLogger("AFILinkerBot Rotating Log")
logger.setLevel(logging.INFO)
logger = logging.getLogger("AFILinkerBot Rotating Log")
logger.setLevel(logging.INFO)

# add a rotating handler
handler = RotatingFileHandler("AFILinkerBot.log", maxBytes=2048000, backupCount=25)
Expand Down

0 comments on commit f634f99

Please sign in to comment.