|
Lines 113-119
Link Here
|
| 113 |
def safe_strftime(fmt, floatsecs): |
113 |
def safe_strftime(fmt, floatsecs): |
| 114 |
try: |
114 |
try: |
| 115 |
return time.strftime(fmt, floatsecs) |
115 |
return time.strftime(fmt, floatsecs) |
| 116 |
except (TypeError, ValueError): |
116 |
except (OverflowError, TypeError, ValueError): |
| 117 |
return None |
117 |
return None |
| 118 |
|
118 |
|
| 119 |
|
119 |
|
|
Lines 142-148
Link Here
|
| 142 |
}.get(parts[3], 0) |
142 |
}.get(parts[3], 0) |
| 143 |
day = int(parts[4]) |
143 |
day = int(parts[4]) |
| 144 |
year = int(parts[6]) |
144 |
year = int(parts[6]) |
| 145 |
except (IndexError, ValueError): |
145 |
except (OverflowError, IndexError, ValueError): |
| 146 |
# Best we can do I think |
146 |
# Best we can do I think |
| 147 |
month = day = year = 0 |
147 |
month = day = year = 0 |
| 148 |
datedir = '%04d%02d%02d' % (year, month, day) |
148 |
datedir = '%04d%02d%02d' % (year, month, day) |