Mercurial > repos > greg > validate_temperature_data
comparison validate_temperature_data.py @ 8:119c30a504db draft
Uploaded
author | greg |
---|---|
date | Tue, 27 Nov 2018 10:10:30 -0500 |
parents | c5004164d035 |
children | 9f4f850c472d |
comparison
equal
deleted
inserted
replaced
7:c5004164d035 | 8:119c30a504db |
---|---|
60 try: | 60 try: |
61 month = int(items[0]) | 61 month = int(items[0]) |
62 day = int(items[1]) | 62 day = int(items[1]) |
63 if month == 2 and day == 29: | 63 if month == 2 and day == 29: |
64 return accumulated_msgs | 64 return accumulated_msgs |
65 except Exception | 65 except Exception: |
66 # Error message accumulated below. | 66 # Error message accumulated below. |
67 pass | 67 pass |
68 return add_error_msg(accumulated_msgs, "Line %d contains an incorrect date format (%s must be mm-dd)." % (line_no, mmdd)) | 68 return add_error_msg(accumulated_msgs, "Line %d contains an incorrect date format (%s must be mm-dd)." % (line_no, mmdd)) |
69 | 69 |
70 | 70 |