Ugly error if local repository not found

Bug #1029469 reported by Jonathan Lange on 2012-07-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

$ jitsu import --repository=/no/way/this/will/exist environment-dump.json
2012-07-26 15:10:16,508 juju.common:INFO Connected to environment.
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 391, in errback
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 458, in _startRunCallbacks
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/share/juju-jitsu/sub-commands/import", line 163, in run_one
    yield func(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "/usr/share/juju-jitsu/sub-commands/import", line 69, in load
    repository = LocalCharmRepository(repo_dir)
  File "/usr/lib/python2.7/dist-packages/juju/charm/", line 44, in __init__
    raise RepositoryNotFound(path)
juju.charm.errors.RepositoryNotFound: No repository found at '/no/way/this/will/exist'

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers