Skip to content

.awikstats crashes #600

Description

@jonorthwash

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 (!?).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions