The British way of dealing with foreign APIs.

Note, this article was published over 6 years ago and hence the content may be stale. Consume with a pinch of salt.

A bad joke told in Python:

def call_foreign_api(str):
    try:
        foreign_api(str)
    except NotUnderstoodError:
        foreign_api(str.upper())