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:
|
||||
tmp = aliases[alias]
|
||||
except KeyError, e:
|
||||
tmp = False
|
||||
print _("Alias '%s' unknown" % alias)
|
||||
|
||||
return False
|
||||
return tmp
|
||||
|
||||
if __name__== "__main__":
|
||||
(options, argv) = fpdb_options()
|
||||
|
|
Loading…
Reference in New Issue
Block a user