Skip to content

Commit e112b69

Browse files
committed
Merge branch 'semver2' of https://github.com/TimMcCool/scratchattach into semver2
2 parents 3cf98db + 6d17c45 commit e112b69

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scratchattach/site/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def enforce_ratelimit(__type: str, name: str, amount: int = 5, duration: int = 6
4646
cache = ratelimit_cache
4747
cache.setdefault(__type, [])
4848
uses = cache[__type]
49-
while uses[-1] < time.time() - duration:
49+
while uses and uses[-1] < time.time() - duration:
5050
uses.pop()
5151
if len(uses) < amount:
5252
uses.insert(0, time.time())

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import codecs
33
import os
44

5-
VERSION = '2.1.14'
5+
VERSION = '2.1.15b0'
66
DESCRIPTION = 'A Scratch API Wrapper'
77
with open('README.md', encoding='utf-8') as f:
88
LONG_DESCRIPTION = f.read()

0 commit comments

Comments
 (0)