Fixed error behaviour on input file permissions.

This commit is contained in:
Tildebeast 2023-05-17 21:13:44 +00:00
parent 4a577c70e0
commit 093c8808b8
1 changed files with 1 additions and 0 deletions

1
sqt
View File

@ -61,6 +61,7 @@ if not os.path.exists(input_filename):
if not os.access(input_filename, os.R_OK):
print(f"\nError: you do not have read permission for {input_filename}. Stopping.\n")
sys.exit(1)
cleaned_lines = convert_file(input_filename)