mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Open log files with UTF-8 encoding.
It seems to work better that way, at least on Python 3.
This commit is contained in:
parent
3879f30d47
commit
92ed5d484d
@ -193,7 +193,7 @@ if not os.path.exists(pluginLogDir):
|
||||
|
||||
try:
|
||||
messagesLogFilename = os.path.join(_logDir, 'messages.log')
|
||||
_handler = BetterFileHandler(messagesLogFilename)
|
||||
_handler = BetterFileHandler(messagesLogFilename, encoding='utf8')
|
||||
except EnvironmentError as e:
|
||||
raise SystemExit('Error opening messages logfile (%s). ' \
|
||||
'Generally, this is because you are running Supybot in a directory ' \
|
||||
|
Loading…
Reference in New Issue
Block a user