Update transmit.py command error

pi-sensors-auto-gps
Alan Johnston 2 days ago committed by GitHub
parent df3189a288
commit 2d3c717386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -397,7 +397,13 @@ if __name__ == "__main__":
# card = "Device" # using USB sound card for audio output # card = "Device" # using USB sound card for audio output
query = ["sudo", "systemctl", "is-active", "gpsd.socket.service"] query = ["sudo", "systemctl", "is-active", "gpsd.socket.service"]
try:
result = subprocess.run(query, capture_output=True, text=True, check=True) result = subprocess.run(query, capture_output=True, text=True, check=True)
except subprocess.CalledProcessError as e:
print(f"Command failed with return code: {e.returncode}")
print(f"Command run was: {e.cmd}")
print(f"Output of the command (stdout): {e.stdout}")
print(f"Error output of the command (stderr): {e.stderr}")
print(result.stdout) print(result.stdout)
if (mode != 'e') and (result.stdout != "active"): if (mode != 'e') and (result.stdout != "active"):

Loading…
Cancel
Save

Powered by TurnKey Linux.