summaryrefslogtreecommitdiffstats
path: root/bugzilla/base.py
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-06-05 13:53:18 -0400
committerWill Woods <wwoods@redhat.com>2008-06-05 13:53:18 -0400
commit0f2942820323a254a6237c7f986d90e2d15848d3 (patch)
tree55bc18c71f7e5efb9eda0c294b5cc33bea543506 /bugzilla/base.py
parent95406dfc9f3518a467c99f03ace1fc57ac1de509 (diff)
downloadpython-bugzilla-0f2942820323a254a6237c7f986d90e2d15848d3.tar.gz
python-bugzilla-0f2942820323a254a6237c7f986d90e2d15848d3.tar.xz
python-bugzilla-0f2942820323a254a6237c7f986d90e2d15848d3.zip
Quietly fixup missing bug_file_loc
Diffstat (limited to 'bugzilla/base.py')
-rw-r--r--bugzilla/base.py5
1 files changed, 4 insertions, 1 deletions
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