Skip to content
Snippets Groups Projects
Commit 03345272 authored by Moul's avatar Moul
Browse files

[fix] #489: bug when no revocation file are choosen.

parent 1a1742be
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,8 @@ class RevocationDialog(QObject):
"",
self.tr("All text files (*.txt)"))
selected_file = selected_files[0]
if (selected_file == ''):
return;
try:
with open(selected_file, 'r') as file:
file_content = file.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment