def pangocairo_create_context(cr):
<EOL>try:<EOL><INDENT>return PangoCairo.create_context(cr)<EOL><DEDENT>except KeyError as e:<EOL><INDENT>if e.args == ('<STR_LIT>',):<EOL><INDENT>raise ShoebotInstallError("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>
If python-gi-cairo is not installed, using PangoCairo.create_context
dies with an unhelpful KeyError, check for that and output somethig
useful.