Remove history NUL byte logging

It just produces a lot of logging noise, and I still have no idea what
to do about it...
This commit is contained in:
Florian Bruhin 2016-11-15 07:28:09 +01:00
parent a38e6be52a
commit ed10cd14d6

View File

@ -88,12 +88,8 @@ class Entry:
if not url.isValid():
raise ValueError("Invalid URL: {}".format(url.errorString()))
if atime.startswith('\0'):
log.init.debug(
"Removing NUL bytes from entry {!r} - see "
"https://github.com/The-Compiler/qutebrowser/issues/"
"670".format(data))
atime = atime.lstrip('\0')
# https://github.com/The-Compiler/qutebrowser/issues/670
atime = atime.lstrip('\0')
if '-' in atime:
atime, flags = atime.split('-')