def get_Object_or_None(klass, *args, **kwargs):
queryset = _get_queryset(klass)<EOL>try:<EOL><INDENT>if args:<EOL><INDENT>return queryset.using(args[<NUM_LIT:0>]).get(**kwargs)<EOL><DEDENT>else:<EOL><INDENT>return queryset.get(*args, **kwargs)<EOL><DEDENT><DEDENT>except queryset.model.DoesNotExist:<EOL><INDENT>return None<EOL><DEDENT>
Uses get() to return an object, or None if the object does not exist.

klass may be a Model, Manager, or QuerySet object. All other passed
arguments and keyword arguments are used in the get() query.

Note: Like with get(), an MultipleObjectsReturned will be raised
if more than one object is found.
Ex: get_Object_or_None(User, db, id=1)