Skip to content

Commit

Permalink
Update manager.py
Browse files Browse the repository at this point in the history
betterput some protection on buffer_size
  • Loading branch information
Francesco Rana committed Aug 28, 2019
1 parent e101b30 commit 12d883c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asterisk/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ def connect(self, host, port=5038, buffer_size=0):
assert type(host) is str

port = int(port) # make sure port is an int
buffer_size = int(buffer_size) # make sure buffer_siz is an int as well

# create our socket and connect
try:
Expand Down

0 comments on commit 12d883c

Please sign in to comment.