Skip to content

Instantly share code, notes, and snippets.

@moacirmoda
Created August 10, 2018 00:47
Show Gist options
  • Save moacirmoda/4f52f33f8e1e8bd6d783058d3d4bcd2d to your computer and use it in GitHub Desktop.
Save moacirmoda/4f52f33f8e1e8bd6d783058d3d4bcd2d to your computer and use it in GitHub Desktop.
try:
Person.objects.get(id=1)
except Person.DoesNotExists:
print('não existe')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment