Skip to content

Commit f4d72a2

Browse files
committed
TASK: Use raw string for regex
1 parent 8b832b0 commit f4d72a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO,
3636
handlers=[logfile_handler])
3737

38-
if not re.match("[0-9]+:[a-zA-Z0-9\-_]+", BOT_TOKEN):
38+
if not re.match(r"[0-9]+:[a-zA-Z0-9\-_]+", BOT_TOKEN):
3939
logging.error("Bot token not correct - please check.")
4040
exit(1)
4141

0 commit comments

Comments
 (0)