Skip to content

Commit

Permalink
Add assert for stock_no. #9
Browse files Browse the repository at this point in the history
  • Loading branch information
toomore committed Jan 10, 2014
1 parent 237a7ad commit 38fcb43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grs/fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __init__(self, stock_no, mons=3):
:stock_no : 股價代碼
:mons : 擷取近 n 個月的資料
"""
assert isinstance(stock_no, str), '`stock_no` must be a string'
self.__get_mons = 0
self.__get_no = 0
self.__info = ()
Expand Down

0 comments on commit 38fcb43

Please sign in to comment.