optimize: add -X utf8 to python subprocess in ga.py to fix unicode output issues
This commit is contained in:
@@ -816,8 +816,9 @@ def get_main_block(driver):
|
||||
if type(html) is not str:
|
||||
time.sleep(2)
|
||||
html = driver.execute_js(js_optHTML)
|
||||
else:
|
||||
print('[STRANGE TYPE]', str(html)[:500])
|
||||
if type(html) is not str:
|
||||
print('[STRANGE TYPE]', type(html), str(html)[:500])
|
||||
return html
|
||||
return html
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user