lib/you_track/client/models/users.rb in you_track-0.4.5 vs lib/you_track/client/models/users.rb in you_track-0.4.6
- old
+ new
@@ -5,7 +5,9 @@
service.users.new(service.get_current_user.body)
end
def get(username)
service.users.new(service.get_user(username).body)
+ rescue Faraday::ResourceNotFound
+ nil
end
end