fix a typo
Browse files- game_util.py +1 -1
game_util.py
CHANGED
|
@@ -7,7 +7,7 @@ from fastapi import HTTPException, status
|
|
| 7 |
|
| 8 |
def read(game: str, code: str, command: str):
|
| 9 |
_code = os.getenv("hfs_code")
|
| 10 |
-
if
|
| 11 |
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
| 12 |
if code != _code:
|
| 13 |
raise HTTPException(status.HTTP_511_NETWORK_AUTHENTICATION_REQUIRED)
|
|
|
|
| 7 |
|
| 8 |
def read(game: str, code: str, command: str):
|
| 9 |
_code = os.getenv("hfs_code")
|
| 10 |
+
if _code is None:
|
| 11 |
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
| 12 |
if code != _code:
|
| 13 |
raise HTTPException(status.HTTP_511_NETWORK_AUTHENTICATION_REQUIRED)
|