diff options
author | Björn B. Brandenburg <bbb@cs.unc.edu> | 2010-05-24 23:22:39 -0400 |
---|---|---|
committer | Björn B. Brandenburg <bbb@cs.unc.edu> | 2010-05-24 23:22:39 -0400 |
commit | 41416987e07af0d5b88af580fc3428d20ab69f5e (patch) | |
tree | 3523416475bbffd1f5e35bc1b989606de7612eb7 /plot.py | |
parent | 584892dcdad885116e0c57080762c048286680de (diff) |
plot.py: don't crash on non-existant files
Diffstat (limited to 'plot.py')
-rwxr-xr-x | plot.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -328,7 +328,10 @@ class SchedPlotter(defapp.App): | |||
328 | self.err("Warning: '%s' doesn't look like a CSV file." | 328 | self.err("Warning: '%s' doesn't look like a CSV file." |
329 | % bname) | 329 | % bname) |
330 | conf = decode(name) | 330 | conf = decode(name) |
331 | tmpfile = get_data_tmpfile(datafile) | 331 | try: |
332 | tmpfile = get_data_tmpfile(datafile) | ||
333 | except IOError: | ||
334 | tmpfile = None | ||
332 | if tmpfile: | 335 | if tmpfile: |
333 | if 'spec' in conf: | 336 | if 'spec' in conf: |
334 | self.plot_spec(tmpfile.name, name, conf) | 337 | self.plot_spec(tmpfile.name, name, conf) |