Skip to content

Commit

Permalink
Add warning to moodle_service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFibonacciEffect authored Jun 18, 2024
1 parent 3eca1be commit 24e7ab6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions moodle_dl/moodle/moodle_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def extract_token(address: str) -> str:
splitted = address.split('token=')

if len(splitted) < 2:
print("this might not be the correct url. Did you maybe only paste the token instead of the whole url?")
return None

decoded = str(base64.b64decode(splitted[1]))
Expand Down

0 comments on commit 24e7ab6

Please sign in to comment.