Skip to content

Commit 1eed16d

Browse files
committed
chatty_client example: catch more specific exception
1 parent d18c8c5 commit 1eed16d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/chatty_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def port_connect(a, b, connect):
8282
def port_rename(port, old, new):
8383
print("renamed", port, "from", repr(old), "to", repr(new))
8484
return jack.SUCCESS
85-
except:
85+
except AttributeError:
8686
print("Could not register port rename callback (not available on JACK1).")
8787

8888

0 commit comments

Comments
 (0)