Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit c1ad6bc

Browse files
committed
Add explanation to exception
1 parent 6dbd87a commit c1ad6bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tradingview_ta/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def get_indicators(self, indicators=[]):
291291

292292
# Return False if can't get data
293293
if response.status_code != 200:
294-
raise Exception("Can't access TradingView's API. HTTP status code: {}.".format(response.status_code))
294+
raise Exception("Can't access TradingView's API. HTTP status code: {}. Check for invalid symbol, exchange, or indicators.".format(response.status_code))
295295

296296
result = json.loads(response.text)["data"]
297297
if result != []:

0 commit comments

Comments
 (0)