|
|
@ -497,6 +497,7 @@ def prepare_asa_upload(): #pylint: disable=too-many-locals |
|
|
|
# save a copy of the screenshot image |
|
|
|
# save a copy of the screenshot image |
|
|
|
fname = app.config.get( "PREPARE_ASA_UPLOAD_SCREENSHOT" ) |
|
|
|
fname = app.config.get( "PREPARE_ASA_UPLOAD_SCREENSHOT" ) |
|
|
|
if fname: |
|
|
|
if fname: |
|
|
|
|
|
|
|
if screenshot_data: |
|
|
|
logger.debug( "Saving a copy of the generated screenshot: %s", fname ) |
|
|
|
logger.debug( "Saving a copy of the generated screenshot: %s", fname ) |
|
|
|
with open( fname, "wb" ) as fp: |
|
|
|
with open( fname, "wb" ) as fp: |
|
|
|
fp.write( screenshot_data ) |
|
|
|
fp.write( screenshot_data ) |
|
|
|