Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.awikstats crashes #600

Open
jonorthwash opened this issue Aug 8, 2021 · 2 comments
Open

.awikstats crashes #600

jonorthwash opened this issue Aug 8, 2021 · 2 comments

Comments

@jonorthwash
Copy link
Member

jonorthwash commented Aug 8, 2021

In response to (12:48:58) firespeaker: .awikstats update alt:

(12:49:06) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:87: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:08) begiak:   for countName in sorted(fileCounts.keys(), key=lambda countName: (fileCounts[countName] and fileCounts[countName][0] is 0, countName)):
(12:49:09) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:98: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:10) begiak:   if count is 0:
(12:49:12) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:106: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:13) begiak:   if count is 0:
(12:49:14) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:137: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:16) begiak:   for countName in sorted(fileCounts.keys(), key=lambda countName: (fileCounts[countName] and fileCounts[countName][0] is 0, countName)):
(12:49:18) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:169: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:20) begiak:   for countName in sorted(fileCounts.keys(), key=lambda countName: (fileCounts[countName] and fileCounts[countName][0] is 0, countName)):
(12:49:22) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:381: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:22) begiak:   if len(fileCounts) is 0:
(12:49:23) begiak: INFO:root:Login as Firespeaker@StemCounterBot succeeded
(12:49:28) begiak: INFO:root:Acquired file counts {'vanilla stems': ('284', ('https://raw.githubusercontent.com/apertium/apertium-alt/83eba775c8b921c1faee542de7e12b8404c18d01/apertium-alt.alt.lexc', 'jonorthwash', '83eba7'), 'https://raw.githubusercontent.com/apertium/apertium-alt/master/apertium-alt.alt.lexc'), 'stems': ('284',
(12:49:33) begiak: ('https://raw.githubusercontent.com/apertium/apertium-alt/83eba775c8b921c1faee542de7e12b8404c18d01/apertium-alt.alt.lexc', 'jonorthwash', '83eba7'), 'https://raw.githubusercontent.com/apertium/apertium-alt/master/apertium-alt.alt.lexc'), 'rules': ('2', ('https://raw.githubusercontent.com/apertium/apertium-alt/b8dab8fdf110d6aa23d7dab7053fdee9e018a1cc/apertium-alt.alt.rlx', 'jonorthwash', 'b8dab8'),
(12:49:35) begiak: 'https://raw.githubusercontent.com/apertium/apertium-alt/master/apertium-alt.alt.rlx')}
(12:49:36) begiak: INFO:root:Update of page Apertium-alt/stats succeeded (https://wiki.apertium.org/wiki/Apertium-alt/stats)

This appears to be a series of syntax errors in the code (!?).

@sushain97
Copy link
Member

sushain97 commented Aug 8, 2021 via email

@jonorthwash
Copy link
Member Author

Yeah, seemed to work despite that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants