Commit 63b8093d authored by Joshua Bachmeier's avatar Joshua Bachmeier

Revert "catch AttributeError and log it"

This reverts commit 19c53ca9.
parent 62982d7a
......@@ -276,13 +276,9 @@ class Group:
def create(self):
rsp = BWIDM.get('group-admin', 'create', CONFIG['backend.bwidm.service']['name'], self.name).json()
try:
if self.name != rsp.name:
logger.warning("Groupname changed from {} to {} by BWIDM".format(self.name, rsp.name))
self.name = rsp.name
except AttributeError as e:
logger.error(F"Did not obtain a json with group name back: {e}")
logger.error(F"What is got is {rsp}")
if self.name != rsp.name:
logger.warning("Groupname changed from {} to {} by BWIDM".format(self.name, rsp.name))
self.name = rsp.name
self.id = rsp.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment