Browse Source

Ignore python pipe errors during discovery

tags/1.9.4
falkTX 11 years ago
parent
commit
7602a77dd3
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      source/carla_shared.py

+ 6
- 2
source/carla_shared.py View File

@@ -677,8 +677,12 @@ def runCarlaDiscovery(itype, stype, filename, tool, isWine=False):
command.append(filename)

Ps = Popen(command, stdout=PIPE)
Ps.wait()
output = Ps.stdout.read().decode("utf-8", errors="ignore").split("\n")

try:
Ps.wait()
output = Ps.stdout.read().decode("utf-8", errors="ignore").split("\n")
except:
output = ""

pinfo = None



Loading…
Cancel
Save