Skip to content

Commit c2a40e8

Browse files
committed
#338 remove global exception handler on _all_migrations_applied
1 parent e728457 commit c2a40e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netbox_custom_objects/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ def _all_migrations_applied():
5555
"migrate",
5656
APP_LABEL,
5757
check=True,
58-
dry_run=True,
5958
interactive=False,
6059
verbosity=0,
6160
)
6261
return True
63-
except (CommandError, Exception):
62+
except CommandError:
63+
# CommandError is raised when there are unapplied migrations
6464
return False
6565

6666
def ready(self):

0 commit comments

Comments
 (0)