diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-10-29 11:04:10 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-10-29 11:04:10 +0300 |
commit | 99adb16b5c8fd095124800384ab43e0f8fa9f0c7 (patch) | |
tree | 70e54c9931f7ba6f9ec97efd8442d535fed5287c /obnamlib | |
parent | 318732151e5f1aa7a558a185fcdb17ba1dc980d8 (diff) | |
download | obnam-99adb16b5c8fd095124800384ab43e0f8fa9f0c7.tar.gz |
Fix list-errors so it doesn't crash
Diffstat (limited to 'obnamlib')
-rw-r--r-- | obnamlib/plugins/list_errors_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obnamlib/plugins/list_errors_plugin.py b/obnamlib/plugins/list_errors_plugin.py index 9e4bdd5c..519bddbf 100644 --- a/obnamlib/plugins/list_errors_plugin.py +++ b/obnamlib/plugins/list_errors_plugin.py @@ -1,4 +1,4 @@ -# Copyright (C) 2015 Lars Wirzenius +# Copyright (C) 2015-2016 Lars Wirzenius # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,6 +27,7 @@ class ListErrorsPlugin(obnamlib.ObnamPlugin): def list_errors(self, args): errors = obnamlib.find_structured_errors(obnamlib, self.app.pluginmgr) + errors = [e for e in errors if e.msg] f = self.app.output f.write('## By error code\n\n') |