Skip to content

Commit 8d73fc7

Browse files
committed
Privacy Substitution Fix
1 parent 1addae4 commit 8d73fc7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

instagram_monitor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3494,6 +3494,8 @@ def process_message_substitutions(message: str) -> str:
34943494
# Debug print helper - only prints if DEBUG_MODE is enabled
34953495
def debug_print(message):
34963496
if DEBUG_MODE:
3497+
if not isinstance(message, str):
3498+
message = str(message)
34973499
message = process_message_substitutions(message)
34983500
timestamp = get_hour_min_from_ts(now_local(), show_seconds=True)
34993501
user = getattr(_thread_local, 'user', None)

0 commit comments

Comments
 (0)