changeset 45:ed53dd00327f

add authentication check
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 17 Dec 2012 11:01:53 -0800
parents b4f3939eeb38
children c6837d0d31fc
files bzconsole/api.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bzconsole/api.py	Mon Dec 17 11:00:23 2012 -0800
+++ b/bzconsole/api.py	Mon Dec 17 11:01:53 2012 -0800
@@ -169,6 +169,8 @@
         # see also:
         # https://github.com/toolness/pybugzilla/blob/master/bzpatch.py
 
+        assert self.username and self.password, "Must be authenticated"
+
         if not description:
             # fairly hacky :/
             description = attachment