[chrome-gnome-shell] connector: assume version 1 for extensions without version in metadata
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell] connector: assume version 1 for extensions without version in metadata
- Date: Mon, 23 Jan 2017 18:30:17 +0000 (UTC)
commit 48ded6911e60fb8415190b252ca420b994e6c525
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Mon Jan 23 22:29:12 2017 +0400
connector: assume version 1 for extensions without version in metadata
Bug: https://github.com/nE0sIghT/chrome-gnome-shell-mirror/issues/27
See-Also: https://git.gnome.org/browse/extensions-web/commit/?id=214f03ee90f0f391d3d4fdec23feedf45e3d0507
connector/chrome-gnome-shell.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/connector/chrome-gnome-shell.py b/connector/chrome-gnome-shell.py
index 0b92d83..0f6e5f1 100755
--- a/connector/chrome-gnome-shell.py
+++ b/connector/chrome-gnome-shell.py
@@ -506,7 +506,7 @@ class ChromeGNOMEShell(Gio.Application):
http_request['installed'][uuid] = {
'version': int(extensions[uuid]['version'])
}
- except ValueError:
+ except (ValueError, KeyError):
http_request['installed'][uuid] = {
'version': 1
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]