Преглед изворни кода

Fix status queue getting stuck due to encoding problem

Shiv Tyagi пре 3 година
родитељ
комит
cd39cdf51e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -385,7 +385,7 @@ def get_build_status():
         elif not os.path.exists(os.path.join(outdir_parent,b,'build.log')):
             status = "Error"
         else:
-            build = open(os.path.join(outdir_parent,b,'build.log')).read()
+            build = open(os.path.join(outdir_parent,b,'build.log'), encoding='utf-8').read()
             if build.find("'%s' finished successfully" % vehicle.lower()) != -1:
                 status = "Finished"
             elif build.find('The configuration failed') != -1 or build.find('Build failed') != -1 or build.find('compilation terminated') != -1: