mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +00:00
Fix UnicodeDecodeError
Traceback (most recent call last):
File "./lib/wnf.py", line 590, in <module>
run()
File "./lib/wnf.py", line 314, in run
build.bundle(False, cms_make)
File "/home/maxwell/erp/lib/webnotes/build.py", line 27, in bundle
on_build()
File "app/startup/event_handlers.py", line 69, in on_build
File "app/home/page/latest_updates/latest_updates.py", line 42, in make
File "app/home/page/latest_updates/latest_updates.py", line 18, in add_to_logs
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)
This commit is contained in:
@@ -14,6 +14,7 @@ def make():
|
||||
out.seek(0)
|
||||
last_commit = None
|
||||
for l in out.readlines():
|
||||
l = l.decode('utf-8')
|
||||
if last_commit is not None:
|
||||
if l.startswith("Date:"):
|
||||
last_commit["date"] = l[8:-1]
|
||||
|
||||
Reference in New Issue
Block a user