<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _bypass_non_decrypted_field_exception(self):
 """Bypass exception if some field was not decrypted."""

        if getattr(settings, 'PGPFIELDS_BYPASS_NON_DECRYPTED_FIELD_EXCEPTION', False):
            return True
        if getattr(settings, 'PGPFIELDS_BYPASS_FIELD_EXCEPTION_IN_MIGRATIONS', False):
            # Since django versions <1.8 have no support of
            # Manager.use_in_migrations, need to turn raising
            # exception off.
            if {'manage.py', 'migrate'}.issubset(sys.argv):
                return True
        return False