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".'),