| 45 | return ConfigParser.ConfigParser.set(self, section, option, value) |
| 46 | |
| 47 | def get(self, section, option, raw=False, variables=None): |
| 48 | try: |
| 49 | if section == "bitmessagesettings" and option == "timeformat": |
| 50 | return ConfigParser.ConfigParser.get(self, section, option, raw, variables) |
| 51 | return ConfigParser.ConfigParser.get(self, section, option, True, variables) |
| 52 | except ConfigParser.InterpolationError: |
| 53 | return ConfigParser.ConfigParser.get(self, section, option, True, variables) |
| 54 | except (ConfigParser.NoSectionError, ConfigParser.NoOptionError) as e: |
| 55 | try: |
| 56 | return BMConfigDefaults[section][option] |
| 57 | except (KeyError, ValueError, AttributeError): |
| 58 | raise e |
| 59 | |
| 60 | def safeGetBoolean(self, section, field): |
| 61 | try: |