From 6620f54a81c0153091ab4433afe77bc6aedd0a36 Mon Sep 17 00:00:00 2001 From: Leonhard Schick Date: Fri, 20 May 2016 09:30:34 +0200 Subject: [PATCH] fixed eppye-bots/bots#374 --- bots/communication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/communication.py b/bots/communication.py index 9154a8c5..059a3556 100644 --- a/bots/communication.py +++ b/bots/communication.py @@ -706,7 +706,7 @@ def __format__(self, format_spec): else: ta.datetime = datetime.datetime.now() try: - tofilename = tofilename.format(**ta.__dict__) #do the actual formatting + tofilename = tofilename.format(infile=ta.infilename,**ta.__dict__) #do the actual formatting except: txt = botslib.txtexc() raise botslib.CommunicationOutError(_('Error in formatting outgoing filename "%(filename)s". Error: "%(error)s".'),