Skip to content

Commit

Permalink
include error message about feedback.docx being empty if names are no…
Browse files Browse the repository at this point in the history
…t provided
  • Loading branch information
ConorSheehan1 committed Mar 21, 2017
1 parent dd14410 commit 11a848e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def do_work(self):
cwd = os.path.dirname(self.entry_zip_dir.get()) + "/"
zip_path = self.entry_zip_dir.get()

if self.entry_names.get().strip() == "":
self.warning_label.configure(text=self.warning_label.cget("text") +
"No names included. All files will be extracted and feedback.docx will be empty\n")

if self.safe_mode.get():
# make dir same name as zip (remove file extension, add slash)
safe_dir = os.path.basename(self.entry_zip_dir.get()).split(".")[0]+"/"
Expand Down

0 comments on commit 11a848e

Please sign in to comment.