

def get(self, name):
    if (not may(CREATE)):
        raise Forbidden()
    try:
        item = current_app.storage.open(name)
    except (OSError, IOError) as e:
        if (e.errno == errno.ENOENT):
            return ('No file found.', 404)
        raise
    if item.meta['complete']:
        error = 'Upload complete. Cannot delete fileupload garbage.'
    else:
        error = None
    if error:
        return (error, 409)
    try:
        item = current_app.storage.remove(name)
    except (OSError, IOError) as e:
        if (error.errno == errno.ENOENT):
            raise NotFound()
        raise
    return 'Upload aborted'

dataset/ETHPy150Open bepasty/bepasty-server/bepasty/views/upload.py UploadAbortView.get/VarMisuse@146/187 `e`->`error`