From a380f55dba87b9452a1ee774edcf6e445a271e30 Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Thu, 28 Mar 2019 14:35:54 +0200 Subject: [PATCH] some changes to fixtures code --- modules/django.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/django.py b/modules/django.py index bfdd393..d1a4f04 100644 --- a/modules/django.py +++ b/modules/django.py @@ -829,10 +829,15 @@ def fixtures(appname=None, backup=False): if configuration.project.host == 'localhost': p = re.compile("\[localhost\] out:") + for match in p.finditer(output): pass - pos = match.end() - output = output[pos:] + + try: + pos = match.end() + output = output[pos:] + except: + pass # now find the first occurence of [ on a newline, e.g. # [