mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix error when importing
This commit is contained in:
parent
576c2b38b2
commit
435afed325
1 changed files with 2 additions and 0 deletions
|
@ -849,6 +849,8 @@ and queue = 0""", intTime(), self.usn())
|
|||
self._logHnd = open(lpath, "a", encoding="utf8")
|
||||
|
||||
def _closeLog(self):
|
||||
if not self._debugLog:
|
||||
return
|
||||
self._logHnd.close()
|
||||
self._logHnd = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue