Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion PyPtt/PTT.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def __init__(self, **kwargs):

self.config.language = language

print('language', self.config.language)
i18n.init(self.config.language)

self.is_mailbox_full: bool = False
Expand Down
4 changes: 2 additions & 2 deletions PyPtt/_api_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ def parse_query_post(api, ori_screen):
cursor_line = [line for line in ori_screen.split(
'\n') if line.strip().startswith(api.cursor)][0]
except Exception as e:
print(api.cursor)
print(ori_screen)
log.logger.debug('cursor', api.cursor)
log.logger.debug('ori_screen', ori_screen)
raise e

post_author = cursor_line
Expand Down
4 changes: 2 additions & 2 deletions PyPtt/connect_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _wait():
connect_success = True
except Exception as e:
traceback.print_tb(e.__traceback__)
print(e)
log.logger.debug(str(e))

if self.config.host == data_type.HOST.PTT1:
log.logger.info(i18n.connect, i18n.PTT, i18n.fail)
Expand Down Expand Up @@ -286,7 +286,7 @@ def send(self, msg: str, target_list: list, screen_timeout: int = 0, refresh: bo
pass
except Exception as e:
traceback.print_tb(e.__traceback__)
print(e)
log.logger.debug(str(e))
msg = msg.encode('utf-8', 'replace')

if is_secret:
Expand Down