summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDaniel Poelzleithner <git@poelzi.org>2014-07-17 02:56:34 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-07-16 21:06:32 -0400
commit068d5f14279fb3816fbc290108d768e3f6eff603 (patch)
tree9fcedf73111ad58782df35bca21b206466664ff7 /contrib
parent13153cfb1aae76c93b48c4817fb4150790a64938 (diff)
downloadpass-068d5f14279fb3816fbc290108d768e3f6eff603.tar.gz
pass-068d5f14279fb3816fbc290108d768e3f6eff603.tar.bz2
pass-068d5f14279fb3816fbc290108d768e3f6eff603.zip
revelation2pass: fix import from entries without passwords
Diffstat (limited to '')
-rwxr-xr-xcontrib/importers/revelation2pass.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/importers/revelation2pass.py b/contrib/importers/revelation2pass.py
index cc2d01c..6545af7 100755
--- a/contrib/importers/revelation2pass.py
+++ b/contrib/importers/revelation2pass.py
@@ -57,7 +57,10 @@ def password_data(element):
""" Return password data and additional info if available from
password entry element. """
data = OrderedDict()
- data['password'] = element.find('field[@id="generic-password"]').text
+ try:
+ data['password'] = element.find('field[@id="generic-password"]').text
+ except AttributeError:
+ data['password'] = None
data['type'] = element.attrib['type']
for field in element.findall('field'):
field_id = field.attrib['id']
nsertions'>+57 2021-02-16Increment go-version to 1.16René 'Necoro' Neumann3-5/+5 2021-02-16Use go-embed for templates instead of inline strings.René 'Necoro' Neumann6-74/+79 2021-02-16Issue #46: Fix semantics of `n` resultRené 'Necoro' Neumann2-9/+15 2021-02-16Issue #46: Move and rename writer; add commentsRené 'Necoro' Neumann3-12/+21 2021-02-15Issue #46: Improvements; add testsRené 'Necoro' Neumann2-1/+48 2021-02-15Bump github.com/google/uuid from 1.1.4 to 1.2.0dependabot[bot]2-3/+3 2021-02-15Issue #46: Make the resulting email body not to include single \r or \n. This...René 'Necoro' Neumann2-2/+66 2021-01-20Bump github.com/PuerkitoBio/goquery from 1.6.0 to 1.6.1dependabot[bot]2-3/+3 2021-01-09Bump github.com/google/uuid from 1.1.2 to 1.1.4dependabot[bot]2-3/+3 2021-01-09Bump github.com/emersion/go-message from 0.14.0 to 0.14.1 (#42)dependabot[bot]2-3/+3 2020-11-28Bump github.com/emersion/go-message from 0.13.0 to 0.14.0 (#38)dependabot[bot]2-3/+9 2020-11-28Bump github.com/google/go-cmp from 0.5.2 to 0.5.4 (#37)dependabot[bot]2-3/+3 2020-11-23Fix release.ymlv0.5.2René 'Necoro' Neumann1-3/+10 2020-11-23Prepare v0.5.2René 'Necoro' Neumann3-3/+8 2020-11-20Bump github.com/gabriel-vasile/mimetype from 1.1.1 to 1.1.2dependabot[bot]2-3/+3 2020-11-04Clean dependabot.ymlRené 'Necoro' Neumann1-4/+0