def get_rclone_version():
    """Extract version number from rclone, if it is available."""
    try:
        import sh
        from sh import rclone
        from io import StringIO
        buffer = StringIO()
        try:
            rclone('--version', _out=buffer)
        except sh.ErrorReturnCode_252:
            pass
        return buffer.getvalue()
    except Exception:
        return 'None'
