Skip to content

Commit

Permalink
[Log] Attempt to don't log unless string returned
Browse files Browse the repository at this point in the history
  • Loading branch information
Neppu-Nep committed Apr 22, 2021
1 parent 8f0ea72 commit c13d6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SaitamaRobot/modules/log_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def log_action(
chat = update.effective_chat
message = update.effective_message

if result:
if result and isinstance(result, str):
datetime_fmt = "%H:%M - %d-%m-%Y"
result += f"\n<b>Event Stamp</b>: <code>{datetime.utcnow().strftime(datetime_fmt)}</code>"

Expand Down

0 comments on commit c13d6d6

Please sign in to comment.