You could just do `self.base_uri = base_uri.rstrip("/")`. It doesn't error if there is no `/`.