Skip to content

Commit

Permalink
Fixed bug where missing "options" in SMETHOD throws IndexError.
Browse files Browse the repository at this point in the history
Closes #3.
  • Loading branch information
twisteroidambassador committed Jan 20, 2017
1 parent 745d380 commit 449b1a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pluggabletransportadapter/baseserverclient.py
Expand Up @@ -240,7 +240,10 @@ def parse_stdout(self, line):
e = line[8:].split(" ", 2)
self.transports[e[0]]["ready"] = True
self.transports[e[0]]["bindaddr"] = e[1]
self.transports[e[0]]["options"] = e[2]
try:
self.transports[e[0]]["options"] = e[2]
except IndexError:
self.transports[e[0]]["options"] = None
self.logger.info("PT server transport '{}' configured, "
"listening on {}".format(e[0], e[1]))
else:
Expand Down

0 comments on commit 449b1a1

Please sign in to comment.