Modify method setJpegPhotoUser()

develop
Самоукин Алексей 15 years ago
parent 0236c3d431
commit ed98c4a170

@ -1158,9 +1158,11 @@ in a sambaDomainName',
stdout=subprocess.PIPE,
stderr=subprocess.PIPE, close_fds=True,
shell=True)
fOut, fIn, fErr = (pipe.stdin, pipe.stdout, pipe.stderr)
fOut, fIn, fErr = (pipe.stdout, pipe.stdin, pipe.stderr)
fIn.close()
if fErr.read():
# Код возврата
retcode = pipe.wait()
if retcode != 0:
self.printERROR(_("Can not convert file '%s' in jpeg format")\
%photoPath)
flagError = True

Loading…
Cancel
Save