diff --git a/datastore/datastore.py b/datastore/datastore.py index 07b73163..8d3cbbbf 100755 --- a/datastore/datastore.py +++ b/datastore/datastore.py @@ -17,7 +17,7 @@ def unload_store(plugin): plugin.log("Emptying store into main store (resetting generations!)", level='unusual') for k, (g, data) in datastore.items(): try: - plugin.rpc.datastore(key=[k], hex=d.hex()) + plugin.rpc.datastore(key=[k], hex=data.hex()) except RpcError as e: plugin.log("Failed to put {} into store: {}".format(k, e), level='broken')