Commit 3e6a8efa authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Fail out if target exists but is not an mcommunity group

parent 55943aee
...@@ -210,6 +210,9 @@ https://documentation.its.umich.edu/node/339/ ...@@ -210,6 +210,9 @@ https://documentation.its.umich.edu/node/339/
extra={'entity': self.account} extra={'entity': self.account}
) )
client.fetch_group(self.account) client.fetch_group(self.account)
except ValueError as e:
self.logger.info(e, extra={'entity': self.account})
exit(2)
except Exception as e: except Exception as e:
self.logger.info(e, extra={'entity': self.account}) self.logger.info(e, extra={'entity': self.account})
......
Supports Markdown
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