Skip to content

Commit

Permalink
Fixed a issue with parser that the self.authors is none
Browse files Browse the repository at this point in the history
  • Loading branch information
mas6y6 committed Dec 3, 2024
1 parent b49b6a5 commit 557d0fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cipher/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@ def __init__(self, file_path: str):
f"Please check the \"plugin.yml\" file or update to the latest version of CipherOS"
)

if not len(self.authors) >= 1:
raise ParserError("There must be one or more authors in the \"authors\" config")
if isinstance(self.authors,list):
if not len(self.authors) >= 1:
raise ParserError("There must be one or more authors in the \"authors\" config")

def get(self, key: str) -> str:
"""Returns a value of the specified key
Expand Down

0 comments on commit 557d0fa

Please sign in to comment.