Skip to content

Commit

Permalink
patch map preprocessor fatal error when -s/-e passed with no command …
Browse files Browse the repository at this point in the history
…after
  • Loading branch information
ultrabear committed Mar 24, 2022
1 parent 5e5ef70 commit 748780a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmds/cmd_scripting.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def map_preprocessor(message: discord.Message, args: List[str], client: di

# parses instances of -startargs and -endargs
exargs: Tuple[List[str], List[str]] = ([], [])
while targs[0] in ['-s', '-e']:
while targs and targs[0] in ['-s', '-e']:
try:
typ = targs.pop(0)
if typ == '-s':
Expand Down Expand Up @@ -328,4 +328,4 @@ async def sonnet_async_map(message: discord.Message, args: List[str], client: di
}
}

version_info: str = "1.2.12"
version_info: str = "1.2.12-1"

0 comments on commit 748780a

Please sign in to comment.