diff options
| author | Teddy Wing | 2018-02-04 06:54:43 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-02-04 06:54:43 +0100 |
| commit | 82cfabefbc1916cf881b6e6f7b2fa819a798eeee (patch) | |
| tree | b5402ea9361c8d381d796542f9431644e3eb07a5 | |
| parent | e8c4fdabb2f032b133cdad7d8729afe0da3c8706 (diff) | |
| download | harvester-submit-week-for-approval-82cfabefbc1916cf881b6e6f7b2fa819a798eeee.tar.bz2 | |
Print error message when week was already submitted
| -rw-r--r-- | harvester_submit_week_for_approval.py | 2 |
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 |
