# HG changeset patch # User Jeff Hammel # Date 1355770913 28800 # Node ID ed53dd00327fbaad9f1827bf2054587b3b51ebaa # Parent b4f3939eeb384ca6aba44f3dbbe4d2456e74737f add authentication check diff -r b4f3939eeb38 -r ed53dd00327f bzconsole/api.py --- 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