File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ language : python
2+
3+ python :
4+ - " 2.7"
5+ - " 3.2"
6+ - " 3.3"
7+ - " 3.4"
8+ - " 3.5"
9+
10+ install :
11+ - python setup.py install
12+ - pip install nose
13+ - pip install coveralls
14+ script :
15+ - nosetests --with-coverage --cover-package=forex_python
16+
17+ after_success :
18+ coveralls
Original file line number Diff line number Diff line change 11import requests
2- import datetime
32
43
54class RatesNotAvailableError (Exception ):
@@ -20,11 +19,8 @@ def _source_url(self):
2019 def _get_date_string (self , date_obj ):
2120 if date_obj is None :
2221 return 'latest'
23- try :
24- date_str = date_obj .strftime ('%Y-%m-%d' )
25- return date_str
26- except ValueError :
27- raise ValueError ("Incorrect date String, date should be YYYY-MM-DD" )
22+ date_str = date_obj .strftime ('%Y-%m-%d' )
23+ return date_str
2824
2925
3026class CurrencyRates (Common ):
You can’t perform that action at this time.
0 commit comments