fix: Crashes
This commit is contained in:
parent
5d731cc61c
commit
b9ba2c289d
@ -322,7 +322,6 @@ help - Gebe diese Hilfe aus'''
|
|||||||
# Configure sources
|
# Configure sources
|
||||||
self._sources = sources_from_config(config)
|
self._sources = sources_from_config(config)
|
||||||
self._data_dir = config['General'].get('DataDir', '/etc/janine/data')
|
self._data_dir = config['General'].get('DataDir', '/etc/janine/data')
|
||||||
self._recipients = config['General']['Recipients'].split(',')
|
|
||||||
self._refresh_timeout = int(config['General']['Timeout'])
|
self._refresh_timeout = int(config['General']['Timeout'])
|
||||||
self._same_domain = config['General'].get('SameDomain', 'True') == 'True'
|
self._same_domain = config['General'].get('SameDomain', 'True') == 'True'
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ import datetime
|
|||||||
|
|
||||||
import aioxmpp
|
import aioxmpp
|
||||||
|
|
||||||
def make_msg(self, to, body):
|
def make_msg(to, body):
|
||||||
'''
|
'''
|
||||||
Wrapper for creating a message object to enqueue or send.
|
Wrapper for creating a message object to enqueue or send.
|
||||||
'''
|
'''
|
||||||
@ -30,7 +30,7 @@ def make_msg(self, to, body):
|
|||||||
|
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
def format_time(self, time_str):
|
def format_time(time_str):
|
||||||
'''
|
'''
|
||||||
Reformat ISO style time data to a more
|
Reformat ISO style time data to a more
|
||||||
readable format.
|
readable format.
|
||||||
|
Loading…
Reference in New Issue
Block a user