From f53b7a8782232887cabc20e5cdf770c591744cac Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Apr 2017 09:00:45 +0530 Subject: [PATCH] ... --- src/calibre/db/cli/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/db/cli/main.py b/src/calibre/db/cli/main.py index dd8323002c..1323851c8d 100644 --- a/src/calibre/db/cli/main.py +++ b/src/calibre/db/cli/main.py @@ -173,14 +173,14 @@ class DBCtx(object): def path(self, path): if self.is_remote: with lopen(path, 'rb') as f: - return f.read() + return path, f.read() return path def run(self, name, *args): m = module_for_cmd(name) if self.is_remote: return self.remote_run(name, m, *args) - return m.implementation(self.db, False, *args) + return m.implementation(self.db, None, *args) def interpret_http_error(self, err): if err.code == httplib.UNAUTHORIZED: