mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fix previous commit on python 2.
This commit is contained in:
parent
1840b94453
commit
50c41f5862
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
import csv
|
import csv
|
||||||
import time
|
import time
|
||||||
|
import codecs
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import supybot.log as log
|
import supybot.log as log
|
||||||
@ -71,7 +72,7 @@ class Later(callbacks.Plugin):
|
|||||||
|
|
||||||
def _openNotes(self):
|
def _openNotes(self):
|
||||||
try:
|
try:
|
||||||
fd = open(self.filename, encoding='utf8')
|
fd = codecs.open(self.filename, encoding='utf8')
|
||||||
except EnvironmentError as e:
|
except EnvironmentError as e:
|
||||||
self.log.warning('Couldn\'t open %s: %s', self.filename, e)
|
self.log.warning('Couldn\'t open %s: %s', self.filename, e)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user