From 2640ea88747e8f6d0deea8224f1ca53f0c6b31a9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 20 Jan 2017 12:59:01 +0100 Subject: [PATCH] c --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 6177f1c6..cceba457 100644 --- a/bot.py +++ b/bot.py @@ -477,7 +477,7 @@ def getrygimage(): telegram.sendmessage("Puoi mettere solo due lettere.") else: directory = "/var/www/html/rygimages/{}.png" - infile = b" image/svg+xml %s " % cmd[1].encode() + infile = " image/svg+xml {} ".format(cmd[1]).encode() try: outfile = open(directory.format(cmd[1]), "x") outfile.close()