Skip to content

Commit

Permalink
#172: add a branch for when the --language option is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
kmyk committed Jul 29, 2018
1 parent 3c96c33 commit 2b33c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions onlinejudge/implementation/command/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def submit(args):

def search_matched_language(language, language_dict):
# Search partial matched language name (not case sensitive)
if language is None:
return []

matched_language = []
for supported_lang in language_dict.values():
Expand Down

0 comments on commit 2b33c65

Please sign in to comment.