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:
parent
aa0ea57d11
commit
fb21c56078
@ -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]
|
||||
@ -59,4 +60,4 @@ def make():
|
||||
lufile.write(json.dumps(logs, indent=1, sort_keys=True))
|
||||
|
||||
if __name__=="__main__":
|
||||
make()
|
||||
make()
|
||||
|
Loading…
Reference in New Issue
Block a user