File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ if(POLICY CMP0048)
2
2
cmake_policy (SET CMP0048 NEW)
3
3
endif (POLICY CMP0048)
4
4
5
- project (dnfdragora VERSION 2.0.1 LANGUAGES NONE)
5
+ project (dnfdragora VERSION 2.0.2 LANGUAGES NONE)
6
6
cmake_minimum_required (VERSION 3.4)
7
7
8
8
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR} /cmake" )
Original file line number Diff line number Diff line change
1
+ 2020-04-23 v. 2.0.2
2
+ ---------------------
3
+ - Fixed another crash at startup with missing or empty settings
4
+ entry into configuration file
5
+
1
6
2020-04-13 v. 2.0.1
2
7
---------------------
3
8
- Fixed a crash at startup with missing settings entry into configuration file
Original file line number Diff line number Diff line change @@ -316,6 +316,8 @@ def _configFileRead(self) :
316
316
user_settings = {}
317
317
if self .config .userPreferences :
318
318
if 'settings' in self .config .userPreferences .keys () :
319
+ if self .config .userPreferences ['settings' ] is None :
320
+ self .config .userPreferences ['settings' ] = {}
319
321
user_settings = self .config .userPreferences ['settings' ]
320
322
#### MetaData
321
323
if 'metadata' in user_settings .keys ():
@@ -349,9 +351,6 @@ def _configFileRead(self) :
349
351
self .log_directory = log ['directory' ]
350
352
if 'level_debug' in log .keys () :
351
353
self .level_debug = log ['level_debug' ]
352
- else :
353
- # NOTE that should not happen since userPreferences should at least empty dictionary
354
- self .config .userPreferences = {}
355
354
356
355
# metadata settings is needed adding it to update old configuration files
357
356
if not 'settings' in self .config .userPreferences .keys () :
You can’t perform that action at this time.
0 commit comments