duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] problem w/ pydrive


From: Kenneth Loafman
Subject: Re: [Duplicity-talk] problem w/ pydrive
Date: Wed, 1 Mar 2017 09:16:07 -0600

Correction:

try:
    import foo
    import bar
except ImportError as e:
    <report import error and read manual>
    <report exception from str(e)>
    raise
except Exception as e:
    <report exception and str(e)>
    raise

On Wed, Mar 1, 2017 at 9:07 AM, Kenneth Loafman <address@hidden> wrote:
ede,

More like the following:

try:
    import foo
    import bar
except ImportError:
    <report import error and read manual>
    raise
except Exception as e:
    <report exception and str(e)>
    raise

...Ken


On Tue, Feb 28, 2017 at 6:25 PM, <address@hidden> wrote:
Ken,

any hint on how? something like this
  http://stackoverflow.com/questions/3847503/wrapping-exceptions-in-python
?

easiest would be probably to simply get rid of the try catch, but then we would loose the "check the manpage" text.

..ede

On 28.02.2017 20:52, Kenneth Loafman wrote:
> Edgar, I've see it done, so yes.
>
> Douglas, could you report this as a bug?
>
> ...Thanks,
> ...Ken
>
>
> On Tue, Feb 28, 2017 at 1:18 PM Douglas J Hunley <address@hidden>
> wrote:
>
>>
>> On Tue, Feb 28, 2017 at 1:51 PM, <address@hidden> wrote:
>>
>> would you agree that the error should be visible, instead of the vague
>> message?
>>
>>
>> Good lord yes! :)
>>
>>
>>
>> --
>> {
>>   "name": "douglas j hunley",
>>   "email": "address@hidden",
>>   "social": [
>>     {
>>         "blog": "https://hunleyd.github.io/",
>>         "twitter": "@hunleyd"
>>     }
>>    ]
>> }
>>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]