mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2026-07-15 23:31:52 +02:00
Resolved some warnings and style issues
This commit is contained in:
@@ -58,7 +58,10 @@ class FactoryConfigParser(object):
|
||||
return str(self.config)
|
||||
|
||||
def __getitem__(self, item):
|
||||
return self.config[item]
|
||||
try:
|
||||
return self.config[item]
|
||||
except KeyError:
|
||||
print(f'The mandatory {item} section could not be found in your .config gile. Check Spelling!')
|
||||
|
||||
def load_entities(self):
|
||||
entity_classes = dict()
|
||||
@@ -161,7 +164,6 @@ class FactoryConfigParser(object):
|
||||
|
||||
def _load_smth(self, config, class_obj):
|
||||
rules = list()
|
||||
rules_names = list()
|
||||
for rule in config:
|
||||
e1 = e2 = e3 = None
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user