mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +03:00
Return None for unset config entries on OSX
Was broken by d763e59. Fixes #281
This commit is contained in:
parent
ba4809942a
commit
17f89afa0d
@ -146,7 +146,9 @@ class Config:
|
|||||||
|
|
||||||
def get(self, key):
|
def get(self, key):
|
||||||
val = self.settings.get(key)
|
val = self.settings.get(key)
|
||||||
if hasattr(val, '__iter__'):
|
if val is None:
|
||||||
|
return None
|
||||||
|
elif hasattr(val, '__iter__'):
|
||||||
return list(val) # make writeable
|
return list(val) # make writeable
|
||||||
else:
|
else:
|
||||||
return unicode(val)
|
return unicode(val)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user