Skip to content
Snippets Groups Projects
Commit cade9376 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'MetaReaderText' into 'main'

MetaReader.py: call subprocess.check_output with text=True

See merge request !68834
parents 7fe42262 a89a1541
No related branches found
No related tags found
1 merge request!68834MetaReader.py: call subprocess.check_output with text=True
......@@ -630,7 +630,7 @@ def _get_pfn(filename):
if pfx == 'LFN:':
import subprocess, os
os.environ['POOL_OUTMSG_LEVEL'] = 'Error'
output = subprocess.check_output(['FClistPFN','-l',filename[4:]]).split('\n')
output = subprocess.check_output(['FClistPFN','-l',filename[4:]],text=True).split('\n')
if len(output) == 2:
return output[0]
msg.error( 'FClistPFN({0}) returned unexpected number of lines:'.format(filename) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment