Overview
Comment: | better error handling |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6cf3431e69af023540af0efde7acaa68 |
User & Date: | arcade@b1t.name on 2013-08-23 12:00:20.000 |
Other Links: | branch diff | manifest | tags |
Context
2013-11-05
| ||
16:21 | less logs, more headers, don't saturate disk with writes check-in: f57e6e032b user: arcade@b1t.name tags: master, trunk | |
2013-08-23
| ||
12:00 | better error handling check-in: 6cf3431e69 user: arcade@b1t.name tags: master, trunk | |
2013-08-14
| ||
08:54 | one more header, python3.3 check-in: 7ff9724ae4 user: arcade@b1t.name tags: master, trunk | |
Changes
Modified samesite.py
from [e5ce2a7c0d]
to [56275b3bbf].
︙ | ︙ | |||
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 | index[my_path_b] = new_record index.sync() except urllib.error.HTTPError as error: # in case of error we don't need to do anything actually, # if file download stalls or fails the file would not be moved to it's location print(error, repr(my_headers)) print(index[my_path_b]) if not os.access(file_name, os.R_OK) and os.access(temp_name, os.R_OK) and '_parts' in index[my_path_b] and index[my_path_b]['_parts'] == spacemap.SpaceMap(): # just moving # drop old dirs XXX print('Moving temporary file to new destination.') | > > > | 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | index[my_path_b] = new_record index.sync() except urllib.error.HTTPError as error: # in case of error we don't need to do anything actually, # if file download stalls or fails the file would not be moved to it's location self.send_response(error.code) self.end_headers() print(error, repr(my_headers)) return print(index[my_path_b]) if not os.access(file_name, os.R_OK) and os.access(temp_name, os.R_OK) and '_parts' in index[my_path_b] and index[my_path_b]['_parts'] == spacemap.SpaceMap(): # just moving # drop old dirs XXX print('Moving temporary file to new destination.') |
︙ | ︙ |