Commit 80cb06e2 authored by Priyanjana Sinha's avatar Priyanjana Sinha
Browse files

Quickfix for set_style under nt

parent 434133fc
......@@ -77,8 +77,11 @@ def set_style(style='tfields', dest="~/.config/matplotlib/"):
.format(**locals()))
source = os.path.join(os.path.dirname(__file__),
style + '.' + styleExtension)
upgrade_style(style, source, dest)
set_style(style)
try:
upgrade_style(style, source, dest)
set_style(style)
except Exception:
log.error("Could not set style")
else:
log.error("Could not set style {path}. Probably you would want to"
"call tfields.plotting.upgrade_style(<style>, "
......
Supports Markdown
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