error in build but not lock the flow
This commit is contained in:
parent
a5de0a92d8
commit
2636e80ece
|
@ -1,12 +1,15 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
|
|
||||||
from django.core.management.base import BaseCommand
|
from django.core.management.base import BaseCommand
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
from evidence.parse import Build
|
from evidence.parse import Build
|
||||||
|
|
||||||
|
|
||||||
|
logger = logging.getLogger('django')
|
||||||
|
|
||||||
|
|
||||||
User = get_user_model()
|
User = get_user_model()
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,4 +50,8 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
def parsing(self):
|
def parsing(self):
|
||||||
for s in self.snapshots:
|
for s in self.snapshots:
|
||||||
|
try:
|
||||||
self.devices.append(Build(s, self.user))
|
self.devices.append(Build(s, self.user))
|
||||||
|
except Exception as err:
|
||||||
|
logger.exception(err)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue