Browse Source

got rid of magic number

283
Jimbo77 13 years ago
parent
commit
3f167cb650
  1. 2
      lib/exchange_rate.py
  2. 2
      lib/gui_lite.py

2
lib/exchange_rate.py

@ -31,7 +31,7 @@ class Exchanger(threading.Thread):
connection = httplib.HTTPSConnection('intersango.com') connection = httplib.HTTPSConnection('intersango.com')
connection.request("GET", "/api/ticker.php") connection.request("GET", "/api/ticker.php")
response = connection.getresponse() response = connection.getresponse()
if response.status == 404: if response.reason == httplib.responses[httplib.NOT_FOUND]:
return return
response = json.loads(response.read()) response = json.loads(response.read())
# 1 = BTC:GBP # 1 = BTC:GBP

2
lib/gui_lite.py

@ -535,7 +535,7 @@ class MiniActuator:
set_quote_currency(currency) set_quote_currency(currency)
def set_config_currency(self, conversion_currency): def set_config_currency(self, conversion_currency):
"""Change the fiat currency conversion country.""" """Change the wallet fiat currency country."""
self.wallet.conversion_currency = conversion_currency self.wallet.conversion_currency = conversion_currency
def copy_address(self, receive_popup): def copy_address(self, receive_popup):

Loading…
Cancel
Save