Skip to content

Commit

Permalink
Exception has .output not .stdout
Browse files Browse the repository at this point in the history
Fixes #40.
  • Loading branch information
mithro committed Oct 15, 2016
1 parent 7209306 commit 729b780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hdmi2usb/modeswitch/boards.py
Expand Up @@ -125,8 +125,8 @@ def load_fx2(board, mode=None, filename=None, verbose=False):
try:
output = subprocess.check_output(cmdline, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
if b"can't modify CPUCS: Protocol error\n" not in e.stdout:
print(e.stdout)
if b"can't modify CPUCS: Protocol error\n" not in e.output:
print(e.output)
raise


Expand Down

0 comments on commit 729b780

Please sign in to comment.