Skip to content

Commit

Permalink
Fixed PYL-R1722
Browse files Browse the repository at this point in the history
  • Loading branch information
louisa-uno authored Dec 10, 2023
1 parent ca0bb2e commit 003ae34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
]
}

import sys
import os
import json
from tkinter import filedialog
Expand Down Expand Up @@ -125,7 +126,7 @@ class messages:
except FileNotFoundError:
print(messages.NO_PROJECT_SELECTED)
os.system('pause')
exit(1)
sys.exit(1)

for patch in patches:
file = file.replace(patches[patch][0], patches[patch][1], 1)
Expand All @@ -143,4 +144,4 @@ class messages:

print(messages.SAVED)
os.system('pause')
exit(0)
sys.exit(0)

0 comments on commit 003ae34

Please sign in to comment.