fix singlefile extractor exception when result is none

This commit is contained in:
Nick Sweeting 2024-05-17 20:12:18 -07:00
parent 29c7aa26bc
commit 774ce3fda7
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -143,7 +143,7 @@ def list_migrations(out_dir: Path=OUTPUT_DIR) -> List[Tuple[bool, str]]:
def apply_migrations(out_dir: Path=OUTPUT_DIR) -> List[str]:
from django.core.management import call_command
null, out = StringIO(), StringIO()
# call_command("makemigrations", interactive=False, stdout=null)
call_command("makemigrations", interactive=False, stdout=null)
call_command("migrate", interactive=False, stdout=out)
out.seek(0)