Skip to content

Commit

Permalink
Don’t reverse-forward port "None"
Browse files Browse the repository at this point in the history
```
 0:27.48 pid:4157 Traceback (most recent call last):
 0:27.48 pid:4157   File "/home/simon/servo1/etc/run_in_headless_android_emulator.py", line 212, in <module>
 0:27.48 pid:4157     sys.exit(main(*sys.argv[1:]))
 0:27.48 pid:4157   File "/home/simon/servo1/etc/run_in_headless_android_emulator.py", line 72, in main
 0:27.48 pid:4157     forward_webdriver(adb, args)
 0:27.48 pid:4157   File "/home/simon/servo1/etc/run_in_headless_android_emulator.py", line 163, in forward_webdriver
 0:27.48 pid:4157     ports = [int(part) for part in split if part]
 0:27.48 pid:4157 ValueError: invalid literal for int() with base 10: 'None'
```
  • Loading branch information
SimonSapin committed Jul 19, 2018
1 parent f10b474 commit cdd6460
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -99,6 +99,7 @@ def start(self, **kwargs):
str(port)
for _protocol, ports in self.server_ports.items()
for port in ports
if port
)

debug_args, command = browser_command(
Expand Down

0 comments on commit cdd6460

Please sign in to comment.