ソースを参照

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