mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
fix: [crawler] added existence check for screenshot set
This commit is contained in:
parent
482fc21b5e
commit
fcd6a98fb0
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ class Domain(AbstractObject):
|
||||||
_write_in_zip_buffer(zf, os.path.join(hars_dir, har), f'{basename}.json')
|
_write_in_zip_buffer(zf, os.path.join(hars_dir, har), f'{basename}.json')
|
||||||
# Screenshot
|
# Screenshot
|
||||||
screenshot = self._get_external_correlation('item', '', item_id, 'screenshot')
|
screenshot = self._get_external_correlation('item', '', item_id, 'screenshot')
|
||||||
if screenshot:
|
if screenshot and screenshot['screenshot']:
|
||||||
screenshot = screenshot['screenshot'].pop()[1:]
|
screenshot = screenshot['screenshot'].pop()[1:]
|
||||||
screenshot = os.path.join(screenshot[0:2], screenshot[2:4], screenshot[4:6], screenshot[6:8],
|
screenshot = os.path.join(screenshot[0:2], screenshot[2:4], screenshot[4:6], screenshot[6:8],
|
||||||
screenshot[8:10], screenshot[10:12], screenshot[12:])
|
screenshot[8:10], screenshot[10:12], screenshot[12:])
|
||||||
|
|
Loading…
Reference in a new issue