from traitlets import TraitError in utils.py

__TraitError__ is used on lines 259 and 266 but it is neither imported nor defined which will cause a __NameError__ to be raised instead of a __TraitError__.

flake8 testing of https://github.com/jupyter/repo2docker on Python 3.6.3

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./repo2docker/utils.py:259:19: F821 undefined name 'TraitError'
            raise TraitError(
                  ^
./repo2docker/utils.py:266:19: F821 undefined name 'TraitError'
            raise TraitError(
                  ^
2     F821 undefined name 'TraitError'
2
```
pull/348/head
cclauss 2018-07-16 10:01:50 +02:00 zatwierdzone przez GitHub
rodzic 5c263a927d
commit b5988f83c1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -5,7 +5,7 @@ import shutil
import subprocess
import sys
from traitlets import Integer
from traitlets import Integer, TraitError
def execute_cmd(cmd, capture=False, **kwargs):