Skip to content

Commit

Permalink
[deviantart] fix AttributeError for URLs without username (#5065)
Browse files Browse the repository at this point in the history
caused by 4f36714
  • Loading branch information
mikf committed Jan 15, 2024
1 parent 69726fc commit 4cedf37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/deviantart.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DeviantartExtractor(Extractor):

def __init__(self, match):
Extractor.__init__(self, match)
self.user = (match.group(1) or match.group(2)).lower()
self.user = (match.group(1) or match.group(2) or "").lower()
self.offset = 0

def _init(self):
Expand Down

0 comments on commit 4cedf37

Please sign in to comment.