mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-07-01 16:09:28 +02:00
use Unknown as field value if it is null #269
This commit is contained in:
@ -20,9 +20,10 @@ class DoujinshiInfo(dict):
|
||||
|
||||
def __getattr__(self, item):
|
||||
try:
|
||||
return dict.__getitem__(self, item)
|
||||
ret = dict.__getitem__(self, item)
|
||||
return ret if ret else 'Unknown'
|
||||
except KeyError:
|
||||
return ''
|
||||
return 'Unknown'
|
||||
|
||||
|
||||
class Doujinshi(object):
|
||||
|
Reference in New Issue
Block a user