Duh... I didn't test with default arguments, apparently.

* SConstruct doesn't like None as a default value; "False" will do nicely, since later logic tests for truth
* Was using [] instead of get() for a value that might not be present (and wanted None in that case)
meow-7.2.2
Josh Bell 2008-03-13 22:26:47 +00:00
parent d60c966bcf
commit a1cde743e7
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class ViewerManifest(LLManifest):
"""Channel reported for login and upgrade purposes ONLY; used for A/B testing"""
# NOTE: Do not return the normal channel if login_channel is not specified, as
# some code may branch depending on whether or not this is present
return self.args['login_channel']
return self.args.get('login_channel')
def channel(self):
return self.args['channel']