Skip to content

Commit

Permalink
[roslaunch] Fix pid file removing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
otamachan authored and dirk-thomas committed Oct 25, 2017
1 parent 41c2067 commit 183344a
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 183344a

Please sign in to comment.