I have the following python script
get = int(subprocess.run(["electrum","getbalance"]))
if get > 0:
print("something")
I get the following error TypeError: int() argument must be a string, a bytes-like object or a number, not 'CompletedProcess'
The output of getbalance is : { "confirmed": "0.000001" }
How can i compare if the balance is higher then 0 and print something ?