summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2012-02-09 16:27:18 (GMT)
committerLuke Macken <lmacken@redhat.com>2012-02-09 16:27:18 (GMT)
commitb84796b0b19ef2735a220f8157e649cff60725c5 (patch)
tree3c876896365e04392f00d6b543e1876962f81977
parenta5bab8b554807c6b35461c6d719e6b39ddec5b68 (diff)
downloadbodhi-b84796b0b19ef2735a220f8157e649cff60725c5.zip
bodhi-b84796b0b19ef2735a220f8157e649cff60725c5.tar.gz
bodhi-b84796b0b19ef2735a220f8157e649cff60725c5.tar.xz
Properly error out when people don't specify an update type
-rw-r--r--bodhi/controllers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index abfdf94..674c9ae 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -622,7 +622,7 @@ class Root(controllers.RootController):
if not builds:
flash_log("Error: Didn't receive any builds")
raise InvalidUpdateException(params)
- if type_ not in config.get('update_types'):
+ if not type_ or type_ not in config.get('update_types'):
flash_log('Unknown update type: %s. Valid types are: %s' % (
type_, config.get('update_types')))
raise InvalidUpdateException(params)