def notify(exception, **options):
    """
    Notify bugsnag of an exception.
    """
    try:
        if isinstance(exception, (list, tuple)):
            # Exception tuples, eg. from sys.exc_info
            if options not in "traceback":
                options["traceback"] = exception[2]

            Notification(exception[1], configuration,
                         RequestConfiguration.get_instance(),
                         **options).deliver()
        else:
            # Exception objects
            Notification(exception, configuration,
                         RequestConfiguration.get_instance(),
                         **options).deliver()
    except Exception:
        try:
            log("Notification failed")
            print((traceback.format_exc()))
        except Exception:
            print(("[BUGSNAG] error in exception handler"))
            print((traceback.format_exc()))
dataset/ETHPy150Open bugsnag/bugsnag-python/bugsnag/__init__.py/notify/swapped operands of `not in`