Options: Modify site_alias so it returns False on failure

This commit is contained in:
Worros 2010-12-15 12:49:52 +08:00
parent 46dd6524ec
commit e5b514cb55

View File

@ -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()