Fix for case where user wants to disable encryption with blank key.

This commit is contained in:
perennate 2013-09-27 21:52:11 -04:00
parent ef71194c7c
commit bcebd12269
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ if cfg.has_key('database') and cfg['database'].has_key('enabled') and cfg['datab
else:
cursor.execute("DELETE FROM gpgmw_keys WHERE id = %s", (row[1],)) # delete key
appendLog('Import confirmation failed for <' + row[2] + '>')
else:
# delete key so we don't continue processing it
cursor.execute("DELETE FROM gpgmw_keys WHERE id = %s", (row[1],))
connection.commit()