Skip to content

Commit

Permalink
[Discord] Use Optional converter for decode qr command
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jan 13, 2020
1 parent 56bf378 commit f01e480
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Discord/cogs/cryptography.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import hashlib
import sys
from typing import Optional
import zlib

from cryptography.hazmat.backends.openssl import backend as openssl_backend
Expand Down Expand Up @@ -132,7 +133,7 @@ async def decode_morse(self, ctx, *, message : str):
await ctx.embed_reply(f":no_entry: Error: {e}")

@decode.command(name = "qr")
async def decode_qr(self, ctx, file_url: str = ""):
async def decode_qr(self, ctx, file_url: Optional[str]):
'''
Decodes QR codes
Input a file url or attach an image
Expand Down

0 comments on commit f01e480

Please sign in to comment.