One more keyword workaround.
This commit is contained in:
parent
d5d3f7423f
commit
c54865eef4
|
@ -68,8 +68,12 @@ class BMConfigParser(ConfigParser.SafeConfigParser):
|
||||||
# pylint: disable=arguments-differ
|
# pylint: disable=arguments-differ
|
||||||
try:
|
try:
|
||||||
if section == "bitmessagesettings" and option == "timeformat":
|
if section == "bitmessagesettings" and option == "timeformat":
|
||||||
|
try:
|
||||||
return ConfigParser.ConfigParser.get(
|
return ConfigParser.ConfigParser.get(
|
||||||
self, section, option, raw=raw, vars=vars, fallback=fallback)
|
self, section, option, raw=raw, vars=vars, fallback=fallback)
|
||||||
|
except TypeError:
|
||||||
|
return ConfigParser.ConfigParser.get(
|
||||||
|
self, section, option, raw=raw, vars=vars)
|
||||||
try:
|
try:
|
||||||
return self._temp[section][option]
|
return self._temp[section][option]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user