Skip to content

Commit

Permalink
flat file issue with file import
Browse files Browse the repository at this point in the history
  • Loading branch information
nginsburg committed Sep 22, 2021
1 parent 1320832 commit 438cbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpkpass/commands/fileimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _file_handler(self, string):
####################################################################
try:
self._yaml_file(safe_load(string))
except (TypeError, scanner.ScannerError):
except (TypeError, scanner.ScannerError, KeyError):
try:
self._flat_file(string.strip().split("\n"))
except TypeError as err:
Expand Down

0 comments on commit 438cbed

Please sign in to comment.