diff options
author | David McMackins II <contact@mcmackins.org> | 2015-08-27 21:33:47 -0500 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2015-08-27 21:33:47 -0500 |
commit | 6deccc71eb38c9d904c9e6b36f53a49b02fd6e49 (patch) | |
tree | 734d49425b03f80f69498fa3f8376eff2fb3ca33 | |
parent | 6d30861c1eac59572fadfb9deec5c9afcf47e283 (diff) |
Fixed bug where flipping coin pair on match failure would think the pair didn't exist
-rw-r--r-- | cfetch/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cfetch/__init__.py b/cfetch/__init__.py index 33c33d2..4d2a664 100644 --- a/cfetch/__init__.py +++ b/cfetch/__init__.py @@ -59,7 +59,7 @@ class Ticker(): try: r = get(self.path + self.get_pair(b, a)) # reverse order - res = self.get_pair_data(r, (a, b)) + res = self.get_pair_data(r, (b, a)) return (float(res[self.kind]) ** -1) * amt except (KeyError, TypeError) as e: raise ValueError(str(e)) # currency pair not found |