@@ -141,7 +141,7 @@ async def login(self, email: str, password: str):
141141 # 2FA is required. Throw an exception.
142142 soup = BeautifulSoup (await login_response .text (), "html.parser" )
143143
144- # TODO better detection of 2FA vs bad password
144+ # TODO (#1) better detection of 2FA vs bad password
145145 if soup .find ("input" , {"name" : "challengeId" }):
146146 self .two_factor_payload = {
147147 k : soup .find ("input" , {"name" : k })["value" ]
@@ -162,7 +162,7 @@ async def login(self, email: str, password: str):
162162 self .two_factor_payload ["language" ] = ("en-US" ,)
163163 raise ChallengeException ()
164164
165- # TODO can we scrape anything from the page?
165+ # TODO (#1) can we scrape anything from the page?
166166 raise Exception ("Failed to log in." )
167167
168168 async def enter_2fa (self , two_factor_code : str ):
@@ -174,7 +174,7 @@ async def enter_2fa(self, two_factor_code: str):
174174 if c .key == "JSESSIONID" :
175175 self .session .headers ["csrf-token" ] = c .value .strip ('"' )
176176 return
177- # TODO can we scrape anything from the page?
177+ # TODO (#1) can we scrape anything from the page?
178178 raise Exception ("Failed to log in." )
179179
180180 # endregion
@@ -258,7 +258,7 @@ async def upload_media(
258258
259259 upload_response = await self .session .put (upload_url , data = data )
260260 if upload_response .status != 201 :
261- # TODO is there any other data that we get?
261+ # TODO (#2) is there any other data that we get?
262262 raise Exception ("Failed to upload file." )
263263
264264 return MessageAttachmentCreate (
0 commit comments