pika/pika — pull request #276 by rboulton (2013-02-04 17:43:48+00:00)
Title: Fix channel._on_close() without a method frame.

If a channel close is triggered by connection close which doesn't have a
method_frame (eg, because of a socket disconnection due to missed
heartbeats), channel._on_close() will be called with a method_frame of
None. This patch handles this, to avoid looking up attributes on None.