📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 10:36:22
📂
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pylint_django
/
tests
/
input
✏️
Editing: func_noerror_duplicate_except_doesnotexist.py
""" Checks that Pylint does not complain about duplicate except blocks catching DoesNotExist exceptions: https://github.com/PyCQA/pylint-django/issues/81 """ # pylint: disable=missing-docstring from django.db import models class Book(models.Model): name = models.CharField(max_length=100) class Author(models.Model): name = models.CharField(max_length=100) def dummy_func(): try: print("foo") except Book.DoesNotExist: print("bar") except Author.DoesNotExist: print("baz")
💾 Save Changes
❌ Cancel