Avoid log spam on invalid instance channels.

This commit is contained in:
Ian Gulliver
2015-12-27 16:43:19 -08:00
parent 7be8b4e9b6
commit 3f37741ae7

View File

@@ -47,7 +47,8 @@ class OnChannelDisconnect(webapp2.RequestHandler):
def post(self): def post(self):
instance_id = self.request.get('from') instance_id = self.request.get('from')
instance = models.Instance.FromID(instance_id) instance = models.Instance.FromID(instance_id)
instance.Delete() if instance:
instance.Delete()
app = webapp2.WSGIApplication([ app = webapp2.WSGIApplication([