diff options
author | Alan Kligman <ack@mozilla.com> | 2013-04-25 01:02:27 -0400 |
---|---|---|
committer | Alan Kligman <ack@mozilla.com> | 2013-04-25 01:02:27 -0400 |
commit | b5c6a0ad079eb19c113ce865b8e3d997d376f219 (patch) | |
tree | 9f4057873e45655792d3325c0cf0b1577bf36bfa /tools/file_packager.py | |
parent | 9cc330b2d437d5158d7bc603ecef6b076cafdfc7 (diff) |
Try/catch around idb open.
Diffstat (limited to 'tools/file_packager.py')
-rw-r--r-- | tools/file_packager.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py index 506e5e0f..eef268cb 100644 --- a/tools/file_packager.py +++ b/tools/file_packager.py @@ -388,7 +388,11 @@ if has_preloaded: var METADATA_STORE_NAME = 'METADATA'; var PACKAGE_STORE_NAME = 'PACKAGES'; function openDatabase(callback, errback) { - var openRequest = indexedDB.open(DB_NAME, DB_VERSION); + try { + var openRequest = indexedDB.open(DB_NAME, DB_VERSION); + } catch (e) { + return errback(e); + } openRequest.onupgradeneeded = function(event) { var db = event.target.result; |