commit | 909995a441c3fe9d1c757bede91a66c021f1e451 | [log] [tgz] |
---|---|---|
author | Dany Robert <rtdany10@gmail.com> | Thu Jul 29 15:58:27 2021 +0530 |
committer | GitHub <noreply@github.com> | Thu Jul 29 15:58:27 2021 +0530 |
tree | 6d4a73ff57baa65bd3f64ee1d0fab36b3f58e0fe | |
parent | 4e96563c923249bd47e87dc17431ea5c6d52856d [diff] |
fix: issue with cache.setex
diff --git a/erpnext/setup/utils.py b/erpnext/setup/utils.py index 33af286..27237bf 100644 --- a/erpnext/setup/utils.py +++ b/erpnext/setup/utils.py
@@ -107,7 +107,7 @@ # expire in 6 hours response.raise_for_status() value = response.json()["result"] - cache.setex(key, value, 6 * 60 * 60) + cache.setex(name=key, time=21600, value=flt(value)) return flt(value) except: frappe.log_error(title="Get Exchange Rate")