Fix use of color for import error while color module not yet imported.
This commit is contained in:
parent
93c7fb2f27
commit
c299874146
@ -9,15 +9,12 @@ except ImportError:
|
||||
try:
|
||||
import bibtexparser as bp
|
||||
except ImportError:
|
||||
print(color.dye('error', color.error) +
|
||||
": you need to install bibterxparser; try running 'pip install "
|
||||
print("error: you need to install bibterxparser; try running 'pip install "
|
||||
"bibtexparser'.")
|
||||
exit(-1)
|
||||
|
||||
import yaml
|
||||
|
||||
from . import color
|
||||
|
||||
|
||||
def sanitize_citekey(record):
|
||||
record['id'] = record['id'].strip('\n')
|
||||
|
Loading…
x
Reference in New Issue
Block a user