Skip to content

Commit 829884a

Browse files
authored
Merge pull request #112 from Labelbox/ms/validation
MAL Validation
2 parents 6183869 + 33e153e commit 829884a

File tree

12 files changed

+1151
-202
lines changed

12 files changed

+1151
-202
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
FROM python:3.7
22

3-
RUN pip install pytest
3+
RUN pip install pytest pytest-cases
4+
45

5-
COPY . /usr/src/labelbox
66
WORKDIR /usr/src/labelbox
7+
COPY requirements.txt /usr/src/labelbox
8+
RUN pip install -r requirements.txt
9+
COPY . /usr/src/labelbox
10+
711

812
RUN python setup.py install

labelbox/exceptions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,8 @@ class MalformedQueryException(Exception):
104104
class UuidError(LabelboxError):
105105
""" Raised when there are repeat Uuid's in bulk import request."""
106106
pass
107+
108+
109+
class MALValidationError(LabelboxError):
110+
"""Raised when user input is invalid for MAL imports."""
111+
...

0 commit comments

Comments
 (0)