Commit 158b6fb1 authored by jkvis's avatar jkvis

Locking error

parent 01de28ad
......@@ -142,7 +142,7 @@ def initiate_transfer(user):
metadata (file): A JSON file.
"""
if not lock.acquire(False):
return jsonify({'error': 'active transfer'}), 400
return jsonify({'error': 'transfer initiation locked'}), 400
try:
for transfer in user.transfers.all():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment