fix: Crashes

This commit is contained in:
PapaTutuWawa 2020-09-17 19:42:39 +02:00
parent 5d731cc61c
commit b9ba2c289d
2 changed files with 2 additions and 3 deletions

View File

@ -322,7 +322,6 @@ help - Gebe diese Hilfe aus'''
# Configure sources
self._sources = sources_from_config(config)
self._data_dir = config['General'].get('DataDir', '/etc/janine/data')
self._recipients = config['General']['Recipients'].split(',')
self._refresh_timeout = int(config['General']['Timeout'])
self._same_domain = config['General'].get('SameDomain', 'True') == 'True'

View File

@ -19,7 +19,7 @@ import datetime
import aioxmpp
def make_msg(self, to, body):
def make_msg(to, body):
'''
Wrapper for creating a message object to enqueue or send.
'''
@ -30,7 +30,7 @@ def make_msg(self, to, body):
return msg
def format_time(self, time_str):
def format_time(time_str):
'''
Reformat ISO style time data to a more
readable format.