From 3bf748f9fb9496f646e3be7879a65c7e8c3d7dcd Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 17 Jun 2013 17:06:28 -0400 Subject: [PATCH] api: Don't require 'https://' in site option. The --site= option is really only for internal developer use, so I don't think we gain anything from being strict about it. (And it doesn't help that the error message one gets pre-this-patch is super confusing). Fixes Trac #937. (imported from commit 8d699982aa6830f9eae2bccd6d0c7a1e0e53dd56) --- humbug/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/humbug/__init__.py b/humbug/__init__.py index afeceda..10971ec 100644 --- a/humbug/__init__.py +++ b/humbug/__init__.py @@ -90,6 +90,8 @@ class Client(object): self.email = email self.verbose = verbose if site is not None: + if not site.startswith("http"): + site = "https://" + site self.base_url = site else: self.base_url = "https://humbughq.com"