Skip to content

Commit

Permalink
Accommodate http urls also.
Browse files Browse the repository at this point in the history
  • Loading branch information
badri committed Aug 13, 2024
1 parent d69d744 commit 5e8dda2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sb.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
def get_sb_url(sb_url):
if sb_url.startswith('https://'):
return sb_url
if sb_url.startswith('http://'):
return sb_url
return f'https://{sb_url}'

sb_url = get_sb_url(os.getenv('SB_URL'))
Expand Down

0 comments on commit 5e8dda2

Please sign in to comment.