diff options
Diffstat (limited to 'astro/oskar')
-rwxr-xr-x | astro/oskar/taper_sky.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astro/oskar/taper_sky.py b/astro/oskar/taper_sky.py index 04a9177..282fe66 100755 --- a/astro/oskar/taper_sky.py +++ b/astro/oskar/taper_sky.py @@ -138,7 +138,7 @@ def main(): os.remove(args.outfile) else: raise OSError("Output file already exists: %s" % args.outfile) - if os.path.exists(args.outfile_taper): + if args.outfile_taper and os.path.exists(args.outfile_taper): if args.clobber: logger.warning("Removed existing file: %s" % args.outfile_taper) os.remove(args.outfile_taper) |