From 33392b3351ae7e4625088950728022467682f9ea Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 8 Jan 2019 17:22:17 -0500 Subject: [PATCH] migration fix --- lbrynet/extras/daemon/migrator/migrate5to6.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/migrator/migrate5to6.py b/lbrynet/extras/daemon/migrator/migrate5to6.py index 6288830e5..69c9389d4 100644 --- a/lbrynet/extras/daemon/migrator/migrate5to6.py +++ b/lbrynet/extras/daemon/migrator/migrate5to6.py @@ -2,6 +2,7 @@ import sqlite3 import os import json import logging +from binascii import hexlify from lbrynet import conf from lbrynet.schema.decode import smart_decode @@ -188,7 +189,7 @@ def do_migration(db_dir): # insert the file transaction.execute( "insert or ignore into file values (?, ?, ?, ?, ?)", - (stream_hash, stream_name, conf.settings.download_dir.encode('hex'), + (stream_hash, stream_name, hexlify(conf.settings.download_dir), data_rate, status) )