Skip to content

Commit

Permalink
TR13204/Infrastructure/python 3 - fix subprocess call returning stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
nidak21 committed May 11, 2020
1 parent 46470f3 commit 449cb0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HttpRequestGovernor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def readURL (url):
# Returns: str.returned
# Throws: Exception if we have problems reading from 'url'

stdout = subprocess.getoutput("curl '%s'" % url)
stdout = subprocess.run("curl '%s'" % url, shell=True, text=True,
capture_output=True).stdout
return stdout


Expand Down

0 comments on commit 449cb0e

Please sign in to comment.