Skip to content

Commit 0fd48cc

Browse files
committed
update gitignore and fix bug fsting in interfaces.py
1 parent 7a8cb7b commit 0fd48cc

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
1+
__pycache__
22
cli/build/
3+
cli/robocompcli.egg-info/

cli/robocompdsl/robocompdsl/templates/templatePython/files/generated/interfaces.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def create_topic(self, property_name, topic_name, prefix, ice_proxy):
2727
topic = self.topic_manager.retrieve(topic_full_name)
2828
except IceStorm.NoSuchTopic:
2929
try:
30-
console.log(f"{Text("WARNING", style='yellow')} {topic_full_name} topic did not create. {Text("Creating...", style='green')}")
30+
console.log(f"{Text('WARNING', style='yellow')} {topic_full_name} topic did not create. {Text('Creating...', style='green')}")
3131
topic = self.topic_manager.create(topic_full_name)
3232
except:
33-
console.log(f"{Text("WARNING", style='yellow')}publishing the {topic_full_name} topic. It is possible that other component have created")
33+
console.log(f"{Text('WARNING', style='yellow')}publishing the {topic_full_name} topic. It is possible that other component have created")
3434

3535
pub = topic.getPublisher().ice_oneway()
3636
proxy = ice_proxy.uncheckedCast(pub)
@@ -83,11 +83,11 @@ def create_adapter(self, topic_name, prefix, interface_handler, endpoint_string)
8383
subscribe_done = True
8484
except Ice.Exception as e:
8585
try:
86-
console.log(f"{Text("WARNING", style='yellow')} {topic_full_name} topic did not create. {Text("Creating...", style='green')}")
86+
console.log(f"{Text('WARNING', style='yellow')} {topic_full_name} topic did not create. {Text('Creating...', style='green')}")
8787
topic = self.topic_manager.create(topic_full_name)
8888
subscribe_done = True
8989
except:
90-
print(f"{Text("WARNING", style='yellow')}publishing the {topic_full_name} topic. It is possible that other component have created")
90+
print(f"{Text('WARNING', style='yellow')}publishing the {topic_full_name} topic. It is possible that other component have created")
9191
qos = {}
9292
topic.subscribeAndGetPublisher(qos, proxy)
9393
adapter.activate()
@@ -106,7 +106,7 @@ def create_adapter(self, property_name, interface_handler, endpoint_string):
106106
adapter.activate()
107107
console.log(f"{property_name} adapter created in port {endpoint_string}")
108108
except:
109-
console.log(f"{Text("ERROR", style='red')} creating or activating adapter for{property_name}")
109+
console.log(f"{Text('ERROR', style='red')} creating or activating adapter for{property_name}")
110110
self.status = -1
111111

112112

0 commit comments

Comments
 (0)