I'm sending an HTTP request using Python 3's urllib and am receiving a bad status line exception.
Code:
mote_file = six.moves.urllib.request.urlopen(scan_uri)
Error message:
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('\x00\x06\x87\x1aHTTP/1.0 200 Ok\r\n',))
The request was made successfully but I am getting an exception because of the special characters. Does anyone have any ideas on how to fix this or suppress the exception?