File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,13 @@ def is_real_user(self) -> bool:
132
132
return bool (self .custom_mxid and self .access_token )
133
133
134
134
def _fresh_intent (self ) -> IntentAPI :
135
- _ , server = self .az .intent .parse_user_id (self .custom_mxid )
136
- try :
137
- self .base_url = self .homeserver_url_map [server ]
138
- except KeyError :
139
- if server == self .az .domain :
140
- self .base_url = self .az .intent .api .base_url
135
+ if self .custom_mxid :
136
+ _ , server = self .az .intent .parse_user_id (self .custom_mxid )
137
+ try :
138
+ self .base_url = self .homeserver_url_map [server ]
139
+ except KeyError :
140
+ if server == self .az .domain :
141
+ self .base_url = self .az .intent .api .base_url
141
142
if self .access_token == "appservice-config" and self .custom_mxid :
142
143
try :
143
144
secret = self .login_shared_secret_map [server ]
You can’t perform that action at this time.
0 commit comments