git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
558ba16
)
catch exception raised if url is not reachable
author
thomasv
<thomasv@gitorious>
Fri, 4 Jan 2013 10:02:39 +0000 (11:02 +0100)
committer
thomasv
<thomasv@gitorious>
Fri, 4 Jan 2013 10:02:39 +0000 (11:02 +0100)
lib/exchange_rate.py
patch
|
blob
|
history
diff --git
a/lib/exchange_rate.py
b/lib/exchange_rate.py
index
a413710
..
bde5f52
100644
(file)
--- a/
lib/exchange_rate.py
+++ b/
lib/exchange_rate.py
@@
-28,8
+28,11
@@
class Exchanger(threading.Thread):
self.discovery()
def discovery(self):
- connection = httplib.HTTPSConnection('blockchain.info')
- connection.request("GET", "/ticker")
+ try:
+ connection = httplib.HTTPSConnection('blockchain.info')
+ connection.request("GET", "/ticker")
+ except:
+ return
response = connection.getresponse()
if response.reason == httplib.responses[httplib.NOT_FOUND]:
return