Skip to content

Commit

Permalink
ignore unknown packages in "status" command
Browse files Browse the repository at this point in the history
  • Loading branch information
petejkim committed Mar 20, 2014
1 parent 88957d1 commit 3dae0e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/autoparts/commands/status.rb
Expand Up @@ -12,7 +12,10 @@ def initialize(args, options)
unless Package.installed? package_name
raise PackageNotInstalledError.new package_name
end
package = Package.factory(package_name)
begin
package = Package.factory(package_name)
rescue PackageNotFoundError => e
end
if package.respond_to? :running?
list[package_name] = package.running?
end
Expand Down

0 comments on commit 3dae0e5

Please sign in to comment.