diff options
Diffstat (limited to 'grc/core/Messages.py')
-rw-r--r-- | grc/core/Messages.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/grc/core/Messages.py b/grc/core/Messages.py index 8daa12c33f..c2d216ef61 100644 --- a/grc/core/Messages.py +++ b/grc/core/Messages.py @@ -16,9 +16,10 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +from __future__ import absolute_import + import traceback import sys -import os # A list of functions that can receive a message. MESSENGERS_LIST = list() @@ -124,8 +125,8 @@ def send_fail_save(file_path): send('>>> Error: Cannot save: %s\n' % file_path) -def send_fail_connection(): - send('>>> Error: Cannot create connection.\n') +def send_fail_connection(msg=''): + send('>>> Error: Cannot create connection.\n' + ('\t' + str(msg) if msg else '')) def send_fail_load_preferences(prefs_file_path): |