fix: issue when you submit wrong file name, error was misleading
This commit is contained in:
parent
2ef7aafc89
commit
8c545b27af
1 changed files with 3 additions and 4 deletions
7
pass2csv
7
pass2csv
|
@ -96,11 +96,10 @@ def main(store_path, grouping_base, outfile, gpgbinary, use_agent, encodings,
|
|||
path = pathlib.Path(store_path)
|
||||
grouping_path = pathlib.Path(grouping_base)
|
||||
gpg = gnupg.GPG(gpgbinary=gpgbinary, use_agent=use_agent)
|
||||
files = path.glob('**/*.gpg')
|
||||
if not path.is_dir():
|
||||
if store_path[-4:] == '.gpg':
|
||||
files = [path]
|
||||
else:
|
||||
files = path.glob('**/*.gpg')
|
||||
#if store_path[-4:] == '.gpg':
|
||||
files = [path]
|
||||
for file in files:
|
||||
logging.info("Processing %s", file)
|
||||
with open(file, 'rb') as fp:
|
||||
|
|
Loading…
Reference in a new issue