Skip to content

Commit

Permalink
refactor: use isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Apr 29, 2024
1 parent f14e3b6 commit a92d372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skbl/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def show_article(data, lang="sv"):
source["furtherreference"] = helpers.aggregate_by_type(
source["furtherreference"], use_markdown=True
)
if type(source["article_author"]) != list:
if not isinstance(source["article_author"], list):
source["article_author"] = [source["article_author"]]

# Set description for meta data
Expand Down

0 comments on commit a92d372

Please sign in to comment.