Options: Modify site_alias so it returns False on failure
This commit is contained in:
parent
46dd6524ec
commit
e5b514cb55
|
@ -102,9 +102,10 @@ def site_alias(alias):
|
||||||
try:
|
try:
|
||||||
tmp = aliases[alias]
|
tmp = aliases[alias]
|
||||||
except KeyError, e:
|
except KeyError, e:
|
||||||
|
tmp = False
|
||||||
print _("Alias '%s' unknown" % alias)
|
print _("Alias '%s' unknown" % alias)
|
||||||
|
|
||||||
return False
|
return tmp
|
||||||
|
|
||||||
if __name__== "__main__":
|
if __name__== "__main__":
|
||||||
(options, argv) = fpdb_options()
|
(options, argv) = fpdb_options()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user