From 0f2942820323a254a6237c7f986d90e2d15848d3 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Thu, 5 Jun 2008 13:53:18 -0400 Subject: Quietly fixup missing bug_file_loc --- bugzilla/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bugzilla/base.py') diff --git a/bugzilla/base.py b/bugzilla/base.py index e784450..d2b33e9 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -577,7 +577,10 @@ class BugzillaBase(object): # let's try to save a network roundtrip here if possible.. for i in required: if i not in data or not data[i]: - raise TypeError, "required field missing or empty: '%s'" % i + if i == 'bug_file_loc': + data[i] = 'http://' + else: + raise TypeError, "required field missing or empty: '%s'" % i # Sort of a chicken-and-egg problem here - check_args will save you a # network roundtrip if your op_sys or rep_platform is bad, but at the # expense of getting querydefaults, which is.. an added network -- cgit