Skip to content

Commit

Permalink
Ignore lint error and fix session video uri call
Browse files Browse the repository at this point in the history
  • Loading branch information
evamaxfield authored Mar 24, 2023
1 parent f049747 commit ad09d9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cdp_backend/pipeline/event_gather_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def get_session_content_hash(


@task(nout=3)
def convert_video_and_handle_host(
def convert_video_and_handle_host( # noqa: C901
video_filepath: str,
session: Session,
credentials_file: str,
Expand Down Expand Up @@ -410,9 +410,9 @@ def convert_video_and_handle_host(
cdp_will_host = True

# Try with www
elif not resource_exists(session.video_url):
elif not resource_exists(session.video_uri):
log.info("Handling www URL problems")
www_url = session.video_url.replace("://", "://www.")
www_url = session.video_uri.replace("://", "://www.")
if resource_exists(www_url):
hosted_video_media_url = www_url

Expand Down

0 comments on commit ad09d9c

Please sign in to comment.