Fix extra blank lines when using log_error()

This commit is contained in:
Kovid Goyal 2018-06-19 12:51:54 +05:30
parent 84b2fbba28
commit 0398dbdcbe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -39,7 +39,7 @@ def safe_print(*a, **k):
def log_error(*a, **k):
try:
msg = k.get('sep', ' ').join(map(str, a)) + k.get('end', '\n')
msg = k.get('sep', ' ').join(map(str, a)) + k.get('end', '')
log_error_string(msg.replace('\0', ''))
except Exception:
pass