Skip to content

Commit

Permalink
Check that breeze_url starts with https://
Browse files Browse the repository at this point in the history
  • Loading branch information
alexortizrosado committed Jun 9, 2015
1 parent 54ba9af commit 9b366a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions breeze/breeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def __init__(self, breeze_url, api_key, debug=False, dry_run=False, connection=r
self.connection = connection

if not (self.breeze_url and
# TODO(alex): use urlparse to check url format.
self.breeze_url.startswith('https://') and
self.breeze_url.endswith('.breezechms.com')):
raise BreezeError('You must provide your breeze_url as ',
'subdomain.breezechms.com')
Expand Down

0 comments on commit 9b366a2

Please sign in to comment.