Skip to content

Commit

Permalink
Merge pull request #1084 from otamachan/lunar-devel-patch
Browse files Browse the repository at this point in the history
[roslaunch] Fix pid file removing condition
  • Loading branch information
dirk-thomas authored Jul 6, 2017
2 parents ac9f45f + c050e7d commit 8d91b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/roslaunch/src/roslaunch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def main(argv=sys.argv):
sys.exit(1)
finally:
# remove the pid file
if options.pid_fn:
if options is not None and options.pid_fn:
try: os.unlink(options.pid_fn)
except os.error: pass

Expand Down

0 comments on commit 8d91b99

Please sign in to comment.