Repository: google/turbinia

Issue:
Turbiniactl Fails When the Config File is None
```
Traceback (most recent call last):                                                                                                                                                                                                                                                        
  File "/usr/local/google/home/amisi/Documents/turbinia/turbinia/turbiniactl.py", line 378, in main                                                                                                                                                                                       
    config.LoadConfig()                                                                                                                                                                                                                                                                   
  File "/usr/local/google/home/amisi/Documents/turbinia/turbinia/config/__init__.py", line 149, in LoadConfig                                                                                                                                                                             
    ValidateAndSetConfig(_config)                                                                                                                                                                                                                                                         
  File "/usr/local/google/home/amisi/Documents/turbinia/turbinia/config/__init__.py", line 179, in ValidateAndSetConfig                                                                                                                                                                   
    _config.configSource, var))                                                                                                                                                                                                                                                           
turbinia.TurbiniaException: Required config attribute /usr/local/google/home/amisi/.turbiniarc:DEPENDENCIES not in config

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/google/home/amisi/Documents/env/bin/turbiniactl", line 11, in <module>
    load_entry_point('turbinia', 'console_scripts', 'turbiniactl')()
  File "/usr/local/google/home/amisi/Documents/turbinia/turbinia/turbiniactl.py", line 382, in main
    exception, config.CONFIG_MSG))
TypeError: unsupported format string passed to TurbiniaException.__format__
```


Discussion:

Resolving patch:
diff --git a/turbinia/config/logger.py b/turbinia/config/logger.py
--- a/turbinia/config/logger.py
+++ b/turbinia/config/logger.py
@@ -57,7 +57,7 @@ def setup(need_file_handler=True, need_stream_handler=True):
       config.LoadConfig()
     except TurbiniaException as exception:
       print(
-          'Could not load config file ({0:s}).\n{1:s}'.format(
+          'Could not load config file ({0!s}).\n{1:s}'.format(
               exception, config.CONFIG_MSG))
       sys.exit(1)
 
diff --git a/turbinia/turbiniactl.py b/turbinia/turbiniactl.py
--- a/turbinia/turbiniactl.py
+++ b/turbinia/turbiniactl.py
@@ -378,7 +378,7 @@ def main():
       config.LoadConfig()
   except TurbiniaException as exception:
     print(
-        'Could not load config file ({0:s}).\n{1:s}'.format(
+        'Could not load config file ({0!s}).\n{1:s}'.format(
             exception, config.CONFIG_MSG))
     sys.exit(1)
 


Test patch: