mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-01 15:37:32 +08:00
fix UTF-8 issue
This commit is contained in:
@@ -139,6 +139,8 @@ jobs:
|
||||
steps:
|
||||
- *restore_repo_cache
|
||||
- *install_tox
|
||||
- *install_wave
|
||||
- *install_ffprobe
|
||||
- run: tox -e test_galaxy_packages
|
||||
js_unit:
|
||||
docker:
|
||||
|
||||
@@ -12,7 +12,7 @@ from galaxy.util import which
|
||||
|
||||
|
||||
def ffprobe(path):
|
||||
data = json.loads(subprocess.check_output(['ffprobe', '-loglevel', 'quiet', '-show_format', '-show_streams', '-of', 'json', path]))
|
||||
data = json.loads(subprocess.check_output(['ffprobe', '-loglevel', 'quiet', '-show_format', '-show_streams', '-of', 'json', path]).decode("utf-8"))
|
||||
return data['format'], data['streams']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user