# HG changeset patch # User drewp # Date 1313386898 25200 # Node ID d17164dbd15f58b182ec11910612e3f044f90ca7 # Parent f97ad4f038c059d4edf4e8e55f90aca55386a98e speechMusic: don't fail on missing 'name' attr Ignore-this: c82dc82c03e26497136e040a3d87a87f darcs-hash:20110815054138-312f9-383adfd1806d2024e9a8953fc35596fe4569a4c1.gz diff -r f97ad4f038c0 -r d17164dbd15f service/speechMusic/speechMusic.py --- a/service/speechMusic/speechMusic.py Sun Aug 14 22:41:20 2011 -0700 +++ b/service/speechMusic/speechMusic.py Sun Aug 14 22:41:38 2011 -0700 @@ -65,7 +65,9 @@ class visitorNet(object): def POST(self): data = jsonlib.loads(web.data()) - + if 'name' not in data: + data['name'] = 'unknown' + if data.get('action') == 'arrive': snd = ('/my/music/entrance/%s.wav' %