Fix use of color for import error while color module not yet imported.

main
Olivier Mangin 11 years ago
parent 93c7fb2f27
commit c299874146

@ -9,15 +9,12 @@ except ImportError:
try: try:
import bibtexparser as bp import bibtexparser as bp
except ImportError: except ImportError:
print(color.dye('error', color.error) + print("error: you need to install bibterxparser; try running 'pip install "
": you need to install bibterxparser; try running 'pip install "
"bibtexparser'.") "bibtexparser'.")
exit(-1) exit(-1)
import yaml import yaml
from . import color
def sanitize_citekey(record): def sanitize_citekey(record):
record['id'] = record['id'].strip('\n') record['id'] = record['id'].strip('\n')

Loading…
Cancel
Save