瀏覽代碼

Fix bug with f-string

Camille Masset 5 年之前
父節點
當前提交
75d784320e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bot/views/telegram.py

+ 1 - 1
bot/views/telegram.py

@@ -165,7 +165,7 @@ def webhook(request):
165 165
                 # for non existing trigrams, we throw the seum to the seum giver
166 166
                 for not_a_counter in set(counters) - set([c.trigramme for c in yes_counters]):
167 167
                     seums_to_throw.append((user_counter, user_counter,
168
-                                           f"Trigramme {not_a_counter} qui n'existe pas du seum"))
168
+                                           "Trigramme {} qui n'existe pas du seum".format(not_a_counter)))
169 169
             else:
170 170
                 seums_to_throw.append((user_counter, user_counter, m))
171 171