From 72c2360081324ded60ccad64cefe67c34d174105 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 22 Aug 2017 20:45:42 +0800 Subject: taper_sky.py: Fix argument --outfile-taper --- astro/oskar/taper_sky.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'astro') 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) -- cgit v1.2.2