From: W. Trevor King Date: Sat, 25 Feb 2012 20:47:58 +0000 (-0500) Subject: I changed my mind and fixed #/03d07e61#. X-Git-Tag: 1.1.0~157 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c767e14bc0a2bc36c852ba1e2639525ec274cd35;p=be.git I changed my mind and fixed #/03d07e61#. --- diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/comments/7bef29a2-20fb-4da2-b339-316787b416b7/body b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/comments/7bef29a2-20fb-4da2-b339-316787b416b7/body new file mode 100644 index 0000000..b480132 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/comments/7bef29a2-20fb-4da2-b339-316787b416b7/body @@ -0,0 +1 @@ +I've changed my mind ;). Fixed now. diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/comments/7bef29a2-20fb-4da2-b339-316787b416b7/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/comments/7bef29a2-20fb-4da2-b339-316787b416b7/values new file mode 100644 index 0000000..0d54532 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/comments/7bef29a2-20fb-4da2-b339-316787b416b7/values @@ -0,0 +1,11 @@ +Author: '"W. Trevor King" ' + + +Content-type: text/plain + + +Date: Sat, 25 Feb 2012 20:46:41 +0000 + + +In-reply-to: cf0b0155-0f1b-4863-a4c0-8cfc0494b280 + diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/values index 1ffb891..94c5f6d 100644 --- a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/values +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/03d07e61-f10b-4dc9-9bd8-3e4c14d6b47b/values @@ -7,7 +7,7 @@ reporter: Tanguy LE CARROUR severity: minor -status: wontfix +status: fixed summary: Crash on permission problems diff --git a/libbe/ui/command_line.py b/libbe/ui/command_line.py index d6e8d67..d6e820b 100644 --- a/libbe/ui/command_line.py +++ b/libbe/ui/command_line.py @@ -304,6 +304,9 @@ def dispatch(ui, command, args): except libbe.command.UserError, e: print >> ui.io.stdout, 'ERROR:\n', e return 1 + except OSError, e: + print >> ui.io.stdout, 'OSError:\n', e + return 1 except libbe.storage.ConnectionError, e: print >> ui.io.stdout, 'Connection Error:\n', e return 1 @@ -366,7 +369,12 @@ def main(): libbe.ui.util.pager.run_pager(paginate) ret = dispatch(ui, command, args) - ui.cleanup() + try: + ui.cleanup() + except IOError, e: + print >> ui.io.stdout, 'IOError:\n', e + return 1 + return ret if __name__ == '__main__':