summaryrefslogtreecommitdiff
path: root/contrib/importers
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/importers')
-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']