Expose remove errors to caller
parent
6b72d04427
commit
381df2815d
|
@ -36,10 +36,9 @@ def add_ticker(name, ticker_name, watchlist):
|
||||||
|
|
||||||
|
|
||||||
def remove_ticker(name, ticker_name, watchlist):
|
def remove_ticker(name, ticker_name, watchlist):
|
||||||
if name in watchlist:
|
watchlist[name].remove(str(ticker_name).upper())
|
||||||
watchlist[name].remove(str(ticker_name).upper())
|
if watchlist[name] == []:
|
||||||
if watchlist[name] == []:
|
del watchlist[name]
|
||||||
del watchlist[name]
|
|
||||||
return watchlist
|
return watchlist
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue