Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c108510

Browse files
author
Steve Chaplin
committed
SC 25/06/2004
svn path=/trunk/matplotlib/; revision=363
1 parent a97c450 commit c108510

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
New entries should be added at the top
22
=======
33

4-
2004-06-25 finance.py: handle case when urlopen() fails
4+
2004-06-25 finance.py: handle case when urlopen() fails - SC
55

66
2004-06-24 Support for multiple images on axes and figure, with
77
blending. Support for upper and lower image origins.

examples/date_demo1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545

4646
quotes = quotes_historical_yahoo(
4747
'INTC', date1, date2, converter=pydates)
48+
if not quotes:
49+
raise SystemExit
4850

4951
dates = [q[0] for q in quotes]
5052
opens = [q[1] for q in quotes]

examples/date_demo2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
monthsFmt = DateFormatter('%b %d')
2828

2929

30-
3130
quotes = quotes_historical_yahoo(
3231
'INTC', date1, date2, converter=pydates)
32+
if not quotes:
33+
raise SystemExit
3334

3435
dates = [q[0] for q in quotes]
3536
opens = [q[1] for q in quotes]

0 commit comments

Comments
 (0)