Skip to content

Commit bf77038

Browse files
committed
more better fix
1 parent 1d999b9 commit bf77038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/file_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ def complete_path(text, state):
8686
elif user_input in ['b', 'B']:
8787
readline.set_completer(autocomplete.complete)
8888
print "\n2) Specify the ROS packages you want to format (quit by entering [q/Q]):"
89-
input_ros_pkg = ""
89+
input_ros_pkg = raw_input("ROS Package: ")
9090

9191
while input_ros_pkg not in ['q', 'Q']:
92-
input_ros_pkg = raw_input("ROS Package: ")
9392
# try to find ros package by name
9493
try:
9594
ros_pkg_path = rospack.get_path(input_ros_pkg)
9695
except Exception, e:
9796
print "Can't find ROS Package with name '" + input_ros_pkg + "', please try another one."
97+
input_ros_pkg = raw_input("ROS Package: ")
9898
continue
9999

100100
# format all files according to the selected file type

0 commit comments

Comments
 (0)