Open Iliamish opened 2 years ago
https://github.com/xntltd/python-http-api/blob/8a6cc08fd01b7337a476d178b432bc0b95854a51/src/xnt/models/http_jto.py#L77
api_client.get_ohlc(symbol='AAPL.NASDAQ', duration=3600) throw OSError: [Errno 22] Invalid argument on Windows
OSError: [Errno 22] Invalid argument
That exception are not catch on line 86 except ValueError: and program crashes.
except ValueError:
Change to except (ValueError, OSError): fix problem
except (ValueError, OSError):
Hello there, is issue still persist? If so please provide full traceback
https://github.com/xntltd/python-http-api/blob/8a6cc08fd01b7337a476d178b432bc0b95854a51/src/xnt/models/http_jto.py#L77
api_client.get_ohlc(symbol='AAPL.NASDAQ', duration=3600) throw
OSError: [Errno 22] Invalid argument
on WindowsThat exception are not catch on line 86
except ValueError:
and program crashes.Change to
except (ValueError, OSError):
fix problem