Handle without port

main
Bob Mottram 2020-06-19 22:05:09 +01:00
parent d5b7dd97af
commit dae869b264
1 changed files with 7 additions and 3 deletions

View File

@ -5960,9 +5960,13 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
if searchPortStr.isdigit(): if searchPortStr.isdigit():
searchPort = int(searchPortStr) searchPort = int(searchPortStr)
searchDomain = searchDomain.split(':')[0] searchDomain = searchDomain.split(':')[0]
print('DEBUG: Search for handle ' + if searchPort:
str(searchNickname) + '@' + str(searchDomain) + ':' + print('DEBUG: Search for handle ' +
str(searchPort)) str(searchNickname) + '@' + str(searchDomain) + ':' +
str(searchPort))
else:
print('DEBUG: Search for handle ' +
str(searchNickname) + '@' + str(searchDomain))
if not searchNickname: if not searchNickname:
print('DEBUG: No nickname found in ' + profileHandle) print('DEBUG: No nickname found in ' + profileHandle)
return None return None