Remove redundant code

This commit is contained in:
Patrick Jentsch
2022-10-11 11:32:50 +02:00
parent 086fe22649
commit 2470c8dfef
3 changed files with 25 additions and 65 deletions

View File

@ -149,7 +149,7 @@ def create_corpus_file(corpus_id):
mimetype='application/vrt+xml',
corpus=corpus
)
except OSError:
except (AttributeError, OSError):
abort(500)
corpus.status = CorpusStatus.UNPREPARED
db.session.commit()