aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-02-04 06:54:43 +0100
committerTeddy Wing2018-02-04 06:54:43 +0100
commit82cfabefbc1916cf881b6e6f7b2fa819a798eeee (patch)
treeb5402ea9361c8d381d796542f9431644e3eb07a5
parente8c4fdabb2f032b133cdad7d8729afe0da3c8706 (diff)
downloadharvester-submit-week-for-approval-82cfabefbc1916cf881b6e6f7b2fa819a798eeee.tar.bz2
Print error message when week was already submitted
-rw-r--r--harvester_submit_week_for_approval.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/harvester_submit_week_for_approval.py b/harvester_submit_week_for_approval.py
index bbcb950..32f6719 100644
--- a/harvester_submit_week_for_approval.py
+++ b/harvester_submit_week_for_approval.py
@@ -64,6 +64,8 @@ def submit_week_for_approval(driver, wait, subdomain):
# Don't submit if the time sheet has already been submitted
if approval_button.text == 'Resubmit Week for Approval':
+ print('Week was already submitted', file=sys.stderr)
+
return driver
# Click "Submit Week for Approval" button