Skip to content

Commit 9ff038f

Browse files
committed
only append if profile number is converted
1 parent 6694c53 commit 9ff038f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mprof

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ def plot_action():
441441
else:
442442
try:
443443
n = int(arg)
444+
if not profiles[n] in filenames:
445+
filenames.append(profiles[n])
444446
except ValueError:
445447
print("Input file not found: " + arg)
446-
if not profiles[n] in filenames:
447-
filenames.append(profiles[n])
448448

449449
pl.figure(figsize=(14, 6), dpi=90)
450450
if len(filenames) > 1 or options.no_timestamps:

0 commit comments

Comments
 (0)